db: Prevent infinite recursion when closing

This commit is contained in:
Daan Sprenkels 2020-04-22 18:25:27 +02:00
parent 728d3833c3
commit e476797da0

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