Skip to content

Commit

Permalink
Read from port
Browse files Browse the repository at this point in the history
Signed-off-by: Achal Shah <achals@gmail.com>
  • Loading branch information
achals committed Dec 29, 2021
1 parent 71b555d commit 9a56204
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ protected void configure() {

// @Provides
public Server provideGrpcServer(
ApplicationProperties applicationProperties,
OnlineServingGrpcServiceV2 onlineServingGrpcServiceV2,
TracingServerInterceptor tracingServerInterceptor) {
ServerBuilder<?> serverBuilder = ServerBuilder.forPort(6566);
ServerBuilder<?> serverBuilder =
ServerBuilder.forPort(applicationProperties.getGrpc().getServer().getPort());
serverBuilder
.addService(onlineServingGrpcServiceV2)
.addService(ProtoReflectionService.newInstance())
.addService(tracingServerInterceptor.intercept(onlineServingGrpcServiceV2));

Expand Down

0 comments on commit 9a56204

Please sign in to comment.