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

Use standard library's context.Context #131

Merged
merged 1 commit into from
Dec 27, 2019

Conversation

desimone
Copy link
Contributor

These changes replace the ad-hoc implementation of context with the standard library's version of context which has been available since Go 1.7. This was previously discussed in #68 .

Signed-off-by: Bobby DeSimone <[email protected]>
@desimone desimone force-pushed the bdd/use-context-package branch from 268d385 to 485035c Compare December 27, 2019 00:04
@bradfitz bradfitz merged commit 215e871 into golang:master Dec 27, 2019
@desimone
Copy link
Contributor Author

Thanks for the quick review and merge @bradfitz 🎄 🎅

scbizu added a commit to ezbuy/groupcache that referenced this pull request Sep 11, 2020
dmitshur pushed a commit that referenced this pull request Mar 31, 2021
Pull request #131 deleted the Context declaration,
which broke most usages of this package since users needed to implement
the interfaces mentioned in this package by referencing the
groupcache.Context type. However, that type was removed from peers.go
in the mentioned pull request.

Technically, #131 is a breaking change since groupcache.Context
was an interface{}, and the PR switched it to be context.Context.
Fortunately, it seems that all users are passing a context.Context
anyways so that the type safety just checks out.

However, most users are still referencing groupcache.Context.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants