Don't need this, using the peer store

This commit is contained in:
херетик
2023-05-30 12:15:25 +01:00
parent 774debbb94
commit 23c2bd2231
2 changed files with 0 additions and 27 deletions

View File

@@ -1,26 +0,0 @@
package db
import (
badger "github.com/ipfs/go-ds-badger2"
"github.com/indra-labs/indra"
log2 "github.com/indra-labs/indra/pkg/proc/log"
)
var (
log = log2.GetLogger(indra.PathBase)
fails = log.E.Chk
)
type Database struct {
*badger.Datastore
}
func New(path string) (db *Database, e error) {
var ds *badger.Datastore
ds, e = badger.NewDatastore(path, nil)
if fails(e) {
return
}
return &Database{ds}, nil
}

View File

@@ -1 +0,0 @@
package db