forked from electricdusk/rushlink
db: Prevent infinite recursion when closing
This commit is contained in:
parent
728d3833c3
commit
e476797da0
@ -66,7 +66,7 @@ func (db *Database) Close() error {
|
|||||||
if db == nil {
|
if db == nil {
|
||||||
panic("no open database")
|
panic("no open database")
|
||||||
}
|
}
|
||||||
return db.Close()
|
return db.Bolt.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize and migrate the database to the current version
|
// Initialize and migrate the database to the current version
|
||||||
|
Loading…
Reference in New Issue
Block a user