-
Notifications
You must be signed in to change notification settings - Fork 438
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
Refine the semantics of StatSlot onComplete #215
Refine the semantics of StatSlot onComplete #215
Conversation
core/base/slot_chain.go
Outdated
for _, s := range sc.stats { | ||
// The OnCompleted is called only when entry passed | ||
if ctx.IsBlocked() { |
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.
Maybe just checking it outside is better?
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.
make sense
Codecov Report
@@ Coverage Diff @@
## master #215 +/- ##
==========================================
+ Coverage 42.41% 42.58% +0.16%
==========================================
Files 82 82
Lines 4406 4405 -1
==========================================
+ Hits 1869 1876 +7
+ Misses 2297 2289 -8
Partials 240 240
Continue to review full report at Codecov.
|
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
Thanks for contributing! |
Describe what this PR does / why we need it
Make StatSlot.OnCompleted sense
Does this pull request fix one issue?
Describe how you did it
Describe how to verify it
Ut
Special notes for reviews