-
Notifications
You must be signed in to change notification settings - Fork 35
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
Remove bare string used as context key. #17
Comments
Also, as per @anzdaddy's comment on #16: "https://golang.org/pkg/sync/atomic/#AddUint64 would be simpler, probably faster and won't leak a goroutine." While there, may as well fix that too. |
samuong
added a commit
that referenced
this issue
Oct 15, 2020
Also, use sync/atomic's AddUint64() to generate IDs, which is simpler and avoids tying up a goroutine. Fixes #17
samuong
added a commit
that referenced
this issue
Oct 15, 2020
Also, use sync/atomic's AddUint64() to generate IDs, which is simpler and avoids tying up a goroutine. Fixes #17
samuong
added a commit
that referenced
this issue
Oct 16, 2020
Also, use sync/atomic's AddUint64() to generate IDs, which is simpler and avoids tying up a goroutine. Fixes #17
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code uses a bare string as a context key. This is a bug.
alpaca/proxyfinder_test.go
Line 35 in 8ac2ded
alpaca/proxy.go
Line 41 in 7d23c7f
The text was updated successfully, but these errors were encountered: