Skip to content

Commit

Permalink
pubsub/rpc: temporary fix until we update to tendermint 0.35 (#708)
Browse files Browse the repository at this point in the history
* temporary fix until we update to tendermint 0.35

* typo

Co-authored-by: John Adler <[email protected]>
  • Loading branch information
liamsi and adlerjohn authored Apr 11, 2022
1 parent e047e9f commit 1e78bd3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rpc/core/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ func Subscribe(ctx *rpctypes.Context, query string) (*ctypes.ResultSubscribe, er
if err != nil {
return nil, err
}
if sub == nil {
return nil, fmt.Errorf("env.EventBus.Subscribe() returned nil")
}

// Capture the current ID, since it can change in the future.
subscriptionID := ctx.JSONReq.ID
Expand Down

0 comments on commit 1e78bd3

Please sign in to comment.