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 builderFor* public on Providers, and update examples #1005

Merged
merged 1 commit into from
Sep 11, 2015

Conversation

carl-mastrangelo
Copy link
Contributor

Addresses #1001

Not yet done for Clients since they depend on SSL specific behavior, not present yet.

server = NettyServerBuilder.forPort(port).addService(ServerInterceptors
.intercept(GreeterGrpc.bindService(new GreeterImpl()), new HeaderServerInterceptor()))
.build().start();
server = ServerProvider.provider().builderForPort(port)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, you should use ServerBuilder.forPort(port). ServerProvider is @Internal, so shouldn't be used directly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Derp, Done.

@ejona86
Copy link
Member

ejona86 commented Sep 11, 2015

@carl-mastrangelo LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants