-
Notifications
You must be signed in to change notification settings - Fork 439
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
Break down flow.ControlBehavior to flow.TokenCalculateStrategy and flow.ControlBehavior #223
Break down flow.ControlBehavior to flow.TokenCalculateStrategy and flow.ControlBehavior #223
Conversation
Codecov Report
@@ Coverage Diff @@
## master #223 +/- ##
==========================================
+ Coverage 42.11% 42.35% +0.24%
==========================================
Files 79 79
Lines 4367 4446 +79
==========================================
+ Hits 1839 1883 +44
- Misses 2294 2329 +35
Partials 234 234
Continue to review full report at Codecov.
|
6774d36
to
4f770ad
Compare
45a24e9
to
8c472a8
Compare
core/flow/rule.go
Outdated
|
||
const ( | ||
Reject ControlBehavior = iota | ||
Default AllocationStrategy = iota |
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.
"Default" seems too generic?
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 Direct?
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.
The naming had been updated.
How do you think of?
8c472a8
to
c05d483
Compare
b9a6a38
to
e439882
Compare
3110e48
to
0fec6ae
Compare
…ow.ControlBehavior
0fec6ae
to
aee8d68
Compare
core/flow/rule.go
Outdated
// Direct means flow control by current resource directly. | ||
Direct RelationStrategy = iota | ||
// DirectResource means flow control by current resource directly. | ||
DirectResource RelationStrategy = iota |
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.
DirectResource seems confusing. Maybe "CurrentResource`?
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
Thanks! |
Describe what this PR does / why we need it
Break down flow.ControlBehavior to flow.AllocationStrategy and flow.ControlEffect
Does this pull request fix one issue?
Describe how you did it
Describe how to verify it
Special notes for reviews