-
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
Add WithResolverUserOptions for custom resolver build options #1711
Conversation
waitForHandshake bool | ||
resolverBuilder resolver.Builder | ||
// Custom user options for resolver.Build. | ||
resolverBuildUserOptions interface{} |
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: maybe buildResolverUserOptions? or userOptionsForBuildResolver?
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.
resolverBuilderUserOptions?
I'm also OK with this as-is.
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 idea was this is like resolver.Build(UserOptions)
.
Keeping this as it is now.
great, that works for me. thanks! |
waitForHandshake bool | ||
resolverBuilder resolver.Builder | ||
// Custom user options for resolver.Build. | ||
resolverBuildUserOptions interface{} |
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.
resolverBuilderUserOptions?
I'm also OK with this as-is.
clientconn.go
Outdated
@@ -223,6 +225,14 @@ func withResolverBuilder(b resolver.Builder) DialOption { | |||
} | |||
} | |||
|
|||
// WithResolverUserOptions returns a DialOptions which sets the UserOptions |
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.
*DialOption
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.
Done
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 review.
waitForHandshake bool | ||
resolverBuilder resolver.Builder | ||
// Custom user options for resolver.Build. | ||
resolverBuildUserOptions interface{} |
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 idea was this is like resolver.Build(UserOptions)
.
Keeping this as it is now.
clientconn.go
Outdated
@@ -223,6 +225,14 @@ func withResolverBuilder(b resolver.Builder) DialOption { | |||
} | |||
} | |||
|
|||
// WithResolverUserOptions returns a DialOptions which sets the UserOptions |
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.
Done
…grpc#1711)" This reverts commit ff1be3f.
fixes #1710