-
Notifications
You must be signed in to change notification settings - Fork 766
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
Refactor matching and split the files into subpackages #6000
Conversation
706bfd8
to
070ad7a
Compare
Pull Request Test Coverage Report for Build 018f5f66-582f-4a02-8ecc-259a2c7f45b8Details
💛 - Coveralls |
@@ -138,19 +153,26 @@ const ( | |||
maxSyncMatchWaitTime = 200 * time.Millisecond | |||
) | |||
|
|||
var _ taskListManager = (*taskListManagerImpl)(nil) | |||
var _ Manager = (*taskListManagerImpl)(nil) |
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.
nit: this is not needed
} | ||
activityTaskListMap[tl.baseName] = tlm.DescribeTaskList(false) | ||
// TODO: review this logic |
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.
mind putting in the comment what seems off?
dPtr := _defaultTaskDispatchRPS | ||
limiter := quotas.NewRateLimiter(&dPtr, _defaultTaskDispatchRPSTTL, config.MinTaskThrottlingBurstSize()) | ||
func newTaskMatcher(config *config.TaskListConfig, fwdr *Forwarder, scope metrics.Scope, isolationGroups []string, log log.Logger) *TaskMatcher { | ||
dPtr := config.TaskDispatchRPS |
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 this what you were referring to as having to be pulled into a central location?
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 central location of the default values is config/config.go
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, actually looks a lot better
What changed?
Refactor matching and split the files into subpackages
Why?
To improve the quality of the codebase
How did you test it?
existing unit tests
Potential risks
The risk is a bit high because it changes almost everything inside matching packages by splitting the files into subpackages. We need at 2 pairs of eyes for reviewing this PR.
Release notes
Documentation Changes