mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-20 06:54:41 +00:00
context: cleaning up context dead ends (#7963)
This commit is contained in:
@@ -57,7 +57,7 @@ func (env *Environment) Subscribe(ctx context.Context, query string) (*coretypes
|
||||
// Capture the current ID, since it can change in the future.
|
||||
subscriptionID := callInfo.RPCRequest.ID
|
||||
go func() {
|
||||
opctx, opcancel := context.WithCancel(context.Background())
|
||||
opctx, opcancel := context.WithCancel(context.TODO())
|
||||
defer opcancel()
|
||||
|
||||
for {
|
||||
|
||||
Reference in New Issue
Block a user