Skip to content

Commit

Permalink
PR: Close acp module.
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzadlone committed Jan 26, 2024
1 parent a63e7b5 commit 61d4aab
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,16 +294,16 @@ func (db *db) Close() {
db.events.Updates.Value().Close()
}

// TODO: This might be optional so use `immutable.Option` Perhaps.
//if err := db.acp.Close(); err != nil {
// log.ErrorE(context.Background(), "Failure closing acp module", err)

//}

if err := db.rootstore.Close(); err != nil {
log.ErrorE(context.Background(), "Failure closing rootstore", err)
}

if db.acp.HasValue() {
if err := db.acp.Value().Close(); err != nil {
log.ErrorE(context.Background(), "Failure closing acp module", err)
}
}

log.Info(context.Background(), "Successfully closed running process")
}

Expand Down

0 comments on commit 61d4aab

Please sign in to comment.