Skip to content

Commit

Permalink
snapshot happens in a separate goroutine
Browse files Browse the repository at this point in the history
  • Loading branch information
p0mvn committed Apr 20, 2022
1 parent 19669c4 commit bbe9d5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion baseapp/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ func (app *BaseApp) Commit() (res abci.ResponseCommit) {
app.halt()
}

app.snapshotManager.SnapshotIfApplicable(header.Height)
go app.snapshotManager.SnapshotIfApplicable(header.Height)

return abci.ResponseCommit{
Data: commitID.Hash,
Expand Down

0 comments on commit bbe9d5e

Please sign in to comment.