diff --git a/db/boltdb.go b/db/boltdb.go index 41021f4d..f8702e45 100644 --- a/db/boltdb.go +++ b/db/boltdb.go @@ -25,6 +25,7 @@ var ( const ( NameIdent = "peername" + FileName = "data.db" ) func NewBoltDB(dbPathname string) (*BoltDB, error) { diff --git a/prog/weaver/main.go b/prog/weaver/main.go index 2d47a8fb..5c57c7f8 100644 --- a/prog/weaver/main.go +++ b/prog/weaver/main.go @@ -248,7 +248,7 @@ func main() { Log.Fatalf("--awsvpc mode is not compatible with the --password option") } - db, err := db.NewBoltDB(dbPrefix + "data.db") + db, err := db.NewBoltDB(dbPrefix + db.FileName) checkFatal(err) defer db.Close()