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 committed 2022-01-10 08:42:32 +01:00
1 parent 61bffa70f9
commit 7cd7cef6c6
5 files changed
+27 -20

No files matched your search

+2
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)
}