htlcswitch: fix duplicate close

The decayed log database opening and closing is managed at a higher
level in config_builder.go.
This commit is contained in:
Joost Jager
2022-01-06 13:23:41 +01:00
parent 61bffa70f9
commit 7cd7cef6c6
5 changed files with 27 additions and 20 deletions

View File

@@ -256,5 +256,7 @@ func (db *db) Copy(w io.Writer) error {
// Close cleanly shuts down the database and syncs all data.
// This function is part of the walletdb.Db interface implementation.
func (db *db) Close() error {
log.Infof("Closing database %v", db.prefix)
return dbConns.Close(db.cfg.Dsn)
}