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

make grpc.DialOption configurable #89

Merged
merged 3 commits into from
Jan 19, 2016

Conversation

kazegusuri
Copy link
Contributor

grpc.WithInsecure() is used implicitly as grpc.DialOptions currently. When TLS is enabled at gRPC server, we have to use grpc.WithTransportCredentials(creds).
This patch makes grpc.DialOption configurable by passing options via args of RegisterXXXHandlerFromEndpoint.

NOTE: this is an interface change of public method.

@yugui
Copy link
Member

yugui commented Jan 18, 2016

Good. Could you re-generate example files with make example?

@kazegusuri
Copy link
Contributor Author

Regenerated examples. PTAL.

@yugui
Copy link
Member

yugui commented Jan 19, 2016

LGTM

yugui added a commit that referenced this pull request Jan 19, 2016
@yugui yugui merged commit dd0938e into grpc-ecosystem:master Jan 19, 2016
@kazegusuri kazegusuri deleted the dial-options-by-args branch January 19, 2016 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants