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

Go 1.19: use atomic.Int{32,64} instead of atomic.AddInt{32, 64} #2095

Closed
sukunrt opened this issue Feb 14, 2023 · 0 comments · Fixed by #2096
Closed

Go 1.19: use atomic.Int{32,64} instead of atomic.AddInt{32, 64} #2095

sukunrt opened this issue Feb 14, 2023 · 0 comments · Fixed by #2096

Comments

@sukunrt
Copy link
Member

sukunrt commented Feb 14, 2023

There are a few places where atomic counters are maintained using atomic.AddInt{32, 64} and atomic.LoadInt{32,64}.
With go 1.19 these can be simplified by using atomic.Int32 or atomic.Int64

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 a pull request may close this issue.

1 participant