-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
balancer: add rpc method to PickOptions #2204
Conversation
Provide additional context to Pickers that wish to make decisions based on the RPC method
balancer/balancer.go
Outdated
@@ -143,7 +143,10 @@ type Builder interface { | |||
} | |||
|
|||
// PickOptions contains addition information for the Pick operation. | |||
type PickOptions struct{} | |||
type PickOptions struct { | |||
// FullMethodName is the full method name of the RPC. |
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.
Explain a bit more on this? E.g.
FullMethodName is the method name that NewStream() is called with, the canonical format is /service/method.
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 the fix.
One minor nit on comments. Otherwise LGTM.
Thank you for your pull request. Before we can look at your contribution, we need to ensure all contributors are covered by a Contributor License Agreement. After the following items are addressed, please respond with a new comment here, and the automated system will re-verify.
Regards, |
41ff5a3
to
477ac82
Compare
Added more context to the |
Provide additional context to Pickers that wish to make decisions based on the RPC method.
Relevant issue: #2103