Skip to content

Comments

Use context.WithoutCancel instead of context.Background#8635

Open
aarongable wants to merge 4 commits intomainfrom
contextcheck
Open

Use context.WithoutCancel instead of context.Background#8635
aarongable wants to merge 4 commits intomainfrom
contextcheck

Conversation

@aarongable
Copy link
Contributor

@aarongable aarongable commented Feb 20, 2026

I found a few places where we were using context.Background(), but actually had a perfectly good parent context to inherit from available. Fix those to better match best practices, and propagate the parent context's other metadata deeper into the call stack.

@aarongable aarongable marked this pull request as ready for review February 20, 2026 23:35
@aarongable aarongable requested a review from a team as a code owner February 20, 2026 23:35
@aarongable aarongable requested a review from jsha February 20, 2026 23:35
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.

2 participants