-
-
Notifications
You must be signed in to change notification settings - Fork 200
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
fix: fix slice init length #1008
Conversation
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.
good catch
I agree, good catch! |
Looks like govulncheck is failing. I'm going to upgrade Go in a separate PR and then you can rebase to get the CI to pass. |
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! Good catch!
@cuishuang please rebase this branch against master |
Updated. Please review again. |
Pull Request Test Coverage Report for Build 49730d774-PR-1008Details
💛 - Coveralls |
This has been merged into master: 0f3131f Thanks for the contribution! |
The intention here should be to initialize a slice with a capacity of
len(observers)
rather than initializing the length of this slice.The online demo: https://go.dev/play/p/q1BcVCmvidW