-
-
Notifications
You must be signed in to change notification settings - Fork 773
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
chore: fix data races #1080
chore: fix data races #1080
Conversation
There is at least one more race, |
@leventov I think, the normal use case is to call |
@nktks yes, only one goroutine. But isn't writing a plain field |
Here's from https://go.dev/ref/mem:
|
@leventov Thank you! I added test case to reproduce. Then I fixed it by using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I would like to see the test in ernieclient_test.go use testify, but that can be done later.
PR Checklist
memory: add interfaces for X, Y
orutil: add whizzbang helpers
).Fixes #123
).Describes the source of new concepts.<- I don't add new conceptContains test coverage for new functions.<- I don't add new functiongolangci-lint
checks.What
Hello.
Thank you for maintaining this great module!
I would like to:
-race
flag in go test CI to avoid data race.