feat: add Close method for resource cleanup in graceful shutdown (#16193)

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
This commit is contained in:
yihuang
2023-05-17 20:04:43 +00:00
committed by GitHub
co-authored by Aleksandr Bezobchuk
parent 46119d1384
commit 09ca393a19
4 changed files with 12 additions and 1 deletions
+5
View File
@@ -1031,3 +1031,8 @@ func NoOpProcessProposal() sdk.ProcessProposalHandler {
return abci.ResponseProcessProposal{Status: abci.ResponseProcessProposal_ACCEPT}
}
}
// Close is called in start cmd to gracefully cleanup resources.
func (app *BaseApp) Close() error {
return nil
}