Skip to content

protect usage of the client context with a lock#2

Merged
benesch merged 1 commit intomasterfrom
lock-context
Jun 5, 2017
Merged

protect usage of the client context with a lock#2
benesch merged 1 commit intomasterfrom
lock-context

Conversation

@benesch
Copy link

@benesch benesch commented Jun 5, 2017

We want to be able to call client.SetTagsContext from multiple goroutines simultaneously.

See: https://github.com/cockroachdb/cockroach/blob/227b8edd089c73f426430937ba0d17ef230989e9/pkg/server/server.go#L713-L714

@benesch benesch requested a review from dt June 5, 2017 20:06
Copy link

@dt dt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should probably try to upstream these.

@benesch benesch merged commit 221b2b4 into master Jun 5, 2017
@benesch
Copy link
Author

benesch commented Jun 5, 2017

👍

getsentry#139
getsentry#140

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

Comments