diff --git a/pom.xml b/pom.xml index 4a06b7676..f6cb92ca9 100644 --- a/pom.xml +++ b/pom.xml @@ -111,7 +111,7 @@ io.grpc - grpc-netty + grpc-netty-shaded ${grpc.version} diff --git a/src/main/java/io/milvus/client/MilvusServiceClient.java b/src/main/java/io/milvus/client/MilvusServiceClient.java index f54d50187..c763e6dfc 100644 --- a/src/main/java/io/milvus/client/MilvusServiceClient.java +++ b/src/main/java/io/milvus/client/MilvusServiceClient.java @@ -21,6 +21,9 @@ import io.grpc.*; import io.grpc.Status; +import io.grpc.netty.shaded.io.grpc.netty.GrpcSslContexts; +import io.grpc.netty.shaded.io.grpc.netty.NettyChannelBuilder; +import io.grpc.netty.shaded.io.netty.handler.ssl.SslContext; import io.grpc.stub.MetadataUtils; import io.milvus.exception.MilvusException; import io.milvus.exception.ServerException; @@ -60,10 +63,9 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.Callable; -import io.grpc.netty.GrpcSslContexts; -import io.grpc.netty.NettyChannelBuilder; -import io.netty.handler.ssl.SslContext; - +import io.grpc.netty.shaded.io.grpc.netty.GrpcSslContexts; +import io.grpc.netty.shaded.io.grpc.netty.NettyChannelBuilder; +import io.grpc.netty.shaded.io.netty.handler.ssl.SslContext; public class MilvusServiceClient extends AbstractMilvusGrpcClient {