Refactor: extract db filename to a constant

This commit is contained in:
Bryan Boreham committed 2017-01-11 13:05:25 +00:00
1 parent 30d6639a98
commit d143470d77
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -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()