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

[v17] Fix SemaphoreLock context.Context implementation #52105

Merged
merged 2 commits into from
Feb 13, 2025

Conversation

GavinFrazar
Copy link
Contributor

Backport #52046 to branch/v17

This updates SempahoreLock to embed its context.Context and use
WithCancelCause for its cancellation func, so that it properly
implements the context.Context interface.
Specifically, the Err() method of a context.Context must not return a
nil error if its Done channel has closed.
@GavinFrazar GavinFrazar added the no-changelog Indicates that a PR does not require a changelog entry label Feb 12, 2025
@GavinFrazar GavinFrazar added this pull request to the merge queue Feb 13, 2025
Merged via the queue into branch/v17 with commit 884a83f Feb 13, 2025
39 checks passed
@GavinFrazar GavinFrazar deleted the bot/backport-52046-branch/v17 branch February 13, 2025 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants