mirror of
https://github.com/aljazceru/wot-relay.git
synced 2025-12-18 06:44:24 +01:00
use tags to select abdger db
This commit is contained in:
5
main.go
5
main.go
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user