Skip to content

Commit

Permalink
add some comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
3AceShowHand committed Apr 2, 2024
1 parent 41fb27d commit 619b5ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cdc/kv/shared_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ func (s *requestedStream) run(ctx context.Context, c *SharedClient, rs *requeste
}
}()

// grpc stream can be canceled by this context when any goroutine meet error,
// the underline established grpc connections is unaffected.
g, gctx := errgroup.WithContext(ctx)
cc, err := c.grpcPool.Connect(gctx, rs.storeAddr)
if err != nil {
Expand Down

0 comments on commit 619b5ad

Please sign in to comment.