Skip to content

Conversation

@htoyoda18
Copy link
Contributor

What I did

  • Fixed several call sites that were using errgroup.WithContext but discarding the derived context.
  • Updated goroutines to consistently use the context returned by errgroup.WithContext, allowing cancellation to properly propagate when one task fails.

In cases where cancellation via context is not intended, using a plain errgroup.Group
(e.g. var eg errgroup.Group) would make the intent clearer than calling WithContext
and ignoring the derived context.

Related issue

N/A

(not mandatory) A picture of a cute animal, if possible in relation to what you did

Signed-off-by: hiroto.toyoda <hiroto.toyoda@dena.com>
@htoyoda18 htoyoda18 force-pushed the fix/errgroup-withcontext-usage branch from 1e57449 to 2c3ceec Compare December 27, 2025 06:02
@htoyoda18 htoyoda18 marked this pull request as ready for review December 27, 2025 06:02
@htoyoda18 htoyoda18 requested a review from a team as a code owner December 27, 2025 06:02
@htoyoda18 htoyoda18 requested review from glours and ndeloof December 27, 2025 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant