-
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
grpc: Add join Dial Option #5861
Conversation
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 except the two nits.
const maxRecvSize = 998765 | ||
const initialWindowSize = 100 |
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.
Please make these local inside their tests.
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.
This is used 4/2 times, respectively?
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.
Actually this is in grpc I see I'll move to tests.
internal/internal.go
Outdated
@@ -77,6 +77,9 @@ var ( | |||
// ClearGlobalDialOptions clears the array of extra DialOption. This | |||
// method is useful in testing and benchmarking. | |||
ClearGlobalDialOptions func() | |||
// JoinDialOptions combines the dial options passed as arguments into a | |||
// single dial option. | |||
JoinDialOptions 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.
Please comment: // func(...grpc.DialOption) grpc.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.
This PR adds a join Dial Option. It also contains tests for this join Dial Option and the already present join Server Option.
RELEASE NOTES: N/A