db: Prevent infinite recursion when closing

This commit is contained in:
Daan Sprenkels committed 2020-04-22 18:25:27 +02:00
1 parent 728d3833c3
commit e476797da0
1 file changed
+1 -1
+1 -1
View File
@@ -66,7 +66,7 @@ func (db *Database) Close() error {
if db == nil {
panic("no open database")
}
return db.Close()
return db.Bolt.Close()
}
// Initialize and migrate the database to the current version