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

Clarify context should be replaced based on application usage #307

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

ewanharris
Copy link
Contributor

🔧 Changes

Replace the usage of context.Background with context.TODO and add a comment recommending this should be replaced.

Ultimately, these represent the same value but this makes it clearer that they should be replaced and there should be an informed choice around what context is used.

📚 References

🔬 Testing

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@ewanharris ewanharris requested a review from a team as a code owner November 2, 2023 11:07
@ewanharris ewanharris changed the title Clarify context should be updated based on application Clarify context should be updated based on application usage Nov 2, 2023
@ewanharris ewanharris changed the title Clarify context should be updated based on application usage Clarify context should be replaced based on application usage Nov 2, 2023
@ewanharris ewanharris merged commit ba83c16 into main Nov 6, 2023
5 checks passed
@ewanharris ewanharris deleted the ewanharris-patch-1 branch November 6, 2023 11:09
@Widcket Widcket mentioned this pull request Nov 10, 2023
2 tasks
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