xyuanlu commented on code in PR #2883:
URL: https://github.com/apache/helix/pull/2883#discussion_r1719363679


##########
helix-gateway/src/main/java/org/apache/helix/gateway/HelixGatewayMain.java:
##########
@@ -38,16 +37,11 @@ private HelixGatewayMain() {
 
   public static void main(String[] args) throws InterruptedException, 
IOException {
     // Create a new server to listen on port 50051
-    GatewayServiceManager manager = new GatewayServiceManager();
-    Server server = new HelixGatewayGrpcServerBuilder().setPort(50051)
-        
.setGrpcService((HelixGatewayServiceGrpcService)manager.getHelixGatewayServiceProcessor())
-        .build();
-
-    server.start();
-    System.out.println("Server started, listening on " + server.getPort());
+    GatewayServiceChannelConfig.GatewayServiceProcessorConfigBuilder builder = 
new GatewayServiceChannelConfig.GatewayServiceProcessorConfigBuilder();
+    GatewayServiceManager manager = new GatewayServiceManager(args[0],
+        builder.setGrpcServerPort(50051).build());

Review Comment:
   TFTR. Updated



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscr...@helix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@helix.apache.org
For additional commands, e-mail: reviews-h...@helix.apache.org

Reply via email to