Skip to content
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

Merged
merged 2 commits into from
Jul 11, 2018

Conversation

mfycheng
Copy link
Contributor

@mfycheng mfycheng commented Jul 6, 2018

Provide additional context to Pickers that wish to make decisions based on the RPC method.

Relevant issue: #2103

Provide additional context to Pickers that
wish to make decisions based on the RPC method
@dfawley dfawley requested a review from menghanl July 6, 2018 22:37
@@ -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.
Copy link
Contributor

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.

Copy link
Contributor

@menghanl menghanl left a 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.

@thelinuxfoundation
Copy link

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,
CLA GitHub bot

@mfycheng
Copy link
Contributor Author

Added more context to the FullMethodName field.

@menghanl menghanl merged commit f57a529 into grpc:master Jul 11, 2018
@mfycheng mfycheng deleted the add-method-to-pickoptions branch July 11, 2018 22:05
@menghanl menghanl added the Type: Feature New features or improvements in behavior label Jul 12, 2018
@menghanl menghanl added this to the 1.14 Release milestone Jul 12, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jan 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Feature New features or improvements in behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants