3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-22 18:52:41 +01:00

explicitly close the DB during importdb

There is no change in behavior since committing the transaction
already write(2)'s all the data to disk. But let's comply with
the official buntdb API.
This commit is contained in:
Shivaram Lingamneni 2021-12-12 22:27:05 -05:00
parent 9293858ba1
commit 98e87f6cc0

View File

@ -242,5 +242,7 @@ func ImportDB(config *Config, infile string) (err error) {
return doImportDB(config, dbImport, tx)
}
return db.Update(performImport)
err = db.Update(performImport)
db.Close()
return
}