From 9a562047da318e5d0ac0430270c31b76d39efc22 Mon Sep 17 00:00:00 2001 From: Achal Shah Date: Wed, 29 Dec 2021 23:04:13 +0530 Subject: [PATCH] Read from port Signed-off-by: Achal Shah --- .../src/main/java/feast/serving/config/ServerModule.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/java/serving/src/main/java/feast/serving/config/ServerModule.java b/java/serving/src/main/java/feast/serving/config/ServerModule.java index 43f52d25fd..6993857935 100644 --- a/java/serving/src/main/java/feast/serving/config/ServerModule.java +++ b/java/serving/src/main/java/feast/serving/config/ServerModule.java @@ -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));