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);