context: cleaning up context dead ends (#7963)

This commit is contained in:
Sam Kleinman
2022-02-22 20:04:16 +00:00
committed by GitHub
parent 912751cf93
commit 2ffb262600
9 changed files with 15 additions and 17 deletions
+1 -1
View File
@@ -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 {