Skip to content

Commit

Permalink
chore: Sync GetGlobalCallback call with other client types
Browse files Browse the repository at this point in the history
  • Loading branch information
dudong2 committed Jan 8, 2025
1 parent f0ffeb7 commit b2b8195
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions abci/client/socket_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ func (cli *socketClient) didRecvResponse(res *types.Response) error {
cli.reqSent.Remove(next) // pop first item from linked list

// Notify client listener if set (global callback).
if cli.globalCb != nil {
cli.globalCb(reqres.Request, res)
if globalCb := cli.GetGlobalCallback(); globalCb != nil {
globalCb(reqres.Request, res)
}

// Notify reqRes listener if set (request specific callback).
Expand Down

0 comments on commit b2b8195

Please sign in to comment.