Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alan/ctx canceled #37

Merged
merged 2 commits into from
Nov 27, 2023
Merged

Alan/ctx canceled #37

merged 2 commits into from
Nov 27, 2023

Conversation

abraithwaite
Copy link
Contributor

The last PR I added changed one instance of returning ctx.Err() to nil, but I think it's actually better to keep it. context.Canceled is an easy error to catch and ignore up the stack, but would be difficult to debug if nil is being returned unexpectedly.

@abraithwaite abraithwaite requested a review from a team November 27, 2023 16:22
@abraithwaite abraithwaite merged commit 9cd6695 into main Nov 27, 2023
1 check passed
@abraithwaite abraithwaite deleted the alan/ctx-canceled branch November 27, 2023 16:36
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