From 6241a6502d9c3c947313b212fcc4902e7054446d Mon Sep 17 00:00:00 2001 From: crusader Date: Wed, 25 Apr 2018 16:22:46 +0900 Subject: [PATCH] ing --- .../java/com/loafle/overflow/central/proxy/ServiceProxy.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/loafle/overflow/central/proxy/ServiceProxy.java b/src/main/java/com/loafle/overflow/central/proxy/ServiceProxy.java index eebad04..437e857 100644 --- a/src/main/java/com/loafle/overflow/central/proxy/ServiceProxy.java +++ b/src/main/java/com/loafle/overflow/central/proxy/ServiceProxy.java @@ -7,6 +7,7 @@ import com.loafle.overflow.core.exception.OverflowException; import io.grpc.*; import io.grpc.Status.Code; +import io.grpc.netty.NettyServerBuilder; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationContext; @@ -28,7 +29,7 @@ public class ServiceProxy { ProxyServerInterceptor proxyServerInterceptor = new ProxyServerInterceptor(); - server = ServerBuilder.forPort(port) + server = NettyServerBuilder.forPort(port) .addService(ServerInterceptors.intercept(new ServiceImpl(new ServiceInvoker(ctx)), proxyServerInterceptor)) .build().start(); logger.info("Server started, listening on " + port);