Skip to content

Commit

Permalink
fix: call reqRes.Callback() if set
Browse files Browse the repository at this point in the history
  • Loading branch information
jinsan-line committed Jan 19, 2021
1 parent d32c34a commit 38df3b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions abci/client/local_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ func (app *localClient) CheckTxAsync(params types.RequestCheckTx) *ReqRes {
reqRes.Response = res
reqRes.SetDone()
reqRes.Done()

// Notify reqRes listener if set
if cb := reqRes.GetCallback(); cb != nil {
cb(res)
}
})

return reqRes
Expand Down

0 comments on commit 38df3b3

Please sign in to comment.