-
Notifications
You must be signed in to change notification settings - Fork 448
purge existing panic operations #284
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
Conversation
6a531e9
to
d083f66
Compare
Codecov Report
@@ Coverage Diff @@
## master #284 +/- ##
==========================================
+ Coverage 51.09% 51.17% +0.07%
==========================================
Files 79 79
Lines 4026 4057 +31
==========================================
+ Hits 2057 2076 +19
- Misses 1679 1692 +13
+ Partials 290 289 -1
Continue to review full report at Codecov.
|
// sampleCount is the number of slots | ||
// intervalInMs is the time length of sliding window | ||
// sampleCount and intervalInMs must be positive and intervalInMs%sampleCount == 0, | ||
// the validation must be done before call NewBucketLeapArray |
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.
How about change the param to bucket span time
and bucket count
in future? Is it more easy to use?
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.
Is your meaning bucket count and bucketLengthMs?
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.
Yes.
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.
We could file another PR to enhance here
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.
I'll have a try, please add an issue and assign to me.
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.
You can submit a issue.
56c1f60
to
43690ed
Compare
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.
Thanks for nice work
Describe what this PR does / why we need it
A panic operation will cause the program to exit
Does this pull request fix one issue?
fixes:#278
Describe how you did it
Describe how to verify it
go test ./...
Special notes for reviews