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

StoreLastCount 方法是不是写错了 #1

Open
realjustice opened this issue Apr 13, 2021 · 1 comment
Open

StoreLastCount 方法是不是写错了 #1

realjustice opened this issue Apr 13, 2021 · 1 comment

Comments

@realjustice
Copy link

realjustice commented Apr 13, 2021

代码中的 atomic.StoreInt64(&gd.lastRenewCount, atomic.SwapInt64(&gd.needrenewCount, 0))
是否应该改为
atomic.StoreInt64(&gd.lastRenewCount, atomic.SwapInt64(&gd.renewCount, 0))

@skyhackvip
Copy link
Owner

是的。感谢提出。已修复

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

No branches or pull requests

2 participants