use tags to select abdger db

This commit is contained in:
Your Name
2024-09-07 22:01:13 -03:00
parent dd9763e967
commit b8ae4a5ccb
3 changed files with 29 additions and 4 deletions

View File

@@ -11,7 +11,6 @@ import (
"time"
"github.com/cespare/xxhash"
"github.com/fiatjaf/eventstore/lmdb"
"github.com/fiatjaf/khatru"
"github.com/greatroar/blobloom"
"github.com/joho/godotenv"
@@ -62,9 +61,7 @@ func main() {
relay.Info.Description = config.RelayDescription
appendPubkey(config.RelayPubkey)
db := lmdb.LMDBBackend{
Path: config.DBPath,
}
db := getDB()
if err := db.Init(); err != nil {
panic(err)
}