-
Notifications
You must be signed in to change notification settings - Fork 816
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
Remove Membership Factory #4627
Remove Membership Factory #4627
Conversation
9df25d2
to
ea9ce70
Compare
"github.com/uber/cadence/common" | ||
"github.com/uber/cadence/common/types" | ||
) | ||
|
||
// ErrUnknownService is thrown for a service that is not tracked by this instance | ||
var ErrUnknownService = errors.New("Service not tracked by Monitor") | ||
|
||
// ErrInsufficientHosts is thrown when there are not enough hosts to serve the request | ||
var ErrInsufficientHosts = &types.InternalServiceError{Message: "Not enough hosts to serve the request"} |
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.
What is the reason for removing up/below errors but not this one? All three of them does not seem to be used outside of this package.
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.
will address this in next PR
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.
Overall looks good.
6f2361f
to
bd5f4c2
Compare
What changed?
membership.Monitor
is used instead ofMembershipMonitorFactory
Why?
To simplify upcoming changes for pluggable
membership
options.How did you test it?
Unit tests/local test
Potential risks
Release notes
Documentation Changes