We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When i calling bar.DecoratorEwmaUpdate after calling bar.Increment() inside goroutine, it panics.
I am using go1.19.1, windows/amd64.
There is some example code that seems cause panic...
https://go.dev/play/p/2oSrMdlHcEF
The text was updated successfully, but these errors were encountered:
address issue #117
d4d9499
I've updated api to fix this. You need to call bar.EwmaIncrement(time.Since(goRoutineStartTime)) instead. https://go.dev/play/p/pYIHUmWzo5O
bar.EwmaIncrement(time.Since(goRoutineStartTime))
Sorry, something went wrong.
The patch fixed the problem. Thank you!
No branches or pull requests
When i calling bar.DecoratorEwmaUpdate after calling bar.Increment() inside goroutine, it panics.
I am using go1.19.1, windows/amd64.
There is some example code that seems cause panic...
https://go.dev/play/p/2oSrMdlHcEF
The text was updated successfully, but these errors were encountered: