Skip to content

Commit

Permalink
fix(client): don't inherit parent ctx by handshakeCtx
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed May 24, 2022
1 parent 46cc21c commit 73ddb29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handshake.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

func (c *Client) handshake(ctx context.Context) error {
handshakeCtx, cancel := context.WithCancel(ctx)
handshakeCtx, cancel := context.WithCancel(context.Background())
defer cancel()

wg, wgCtx := errgroup.WithContext(ctx)
Expand Down

0 comments on commit 73ddb29

Please sign in to comment.