From 98e87f6cc07e96c2b85a5756bcf9c68e3e83211f Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Sun, 12 Dec 2021 22:27:05 -0500 Subject: [PATCH] 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. --- irc/import.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/irc/import.go b/irc/import.go index 449f402b..27212e96 100644 --- a/irc/import.go +++ b/irc/import.go @@ -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 }