Explorar el Código

Remove duplicated GRPC invocation

jianghua hace 5 años
padre
commit
dd5ccff1b8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/main/java/io/milvus/client/MilvusGrpcClient.java

+ 1 - 1
src/main/java/io/milvus/client/MilvusGrpcClient.java

@@ -67,7 +67,7 @@ public class MilvusGrpcClient extends AbstractMilvusGrpcClient {
     try {
       Response response = getServerVersion();
       if (response.ok()) {
-        String serverVersion = getServerVersion().getMessage();
+        String serverVersion = response.getMessage();
         if (!serverVersion.matches("^" + SUPPORTED_SERVER_VERSION + "(\\..*)?$")) {
           throw new UnsupportedServerVersion(connectParam.getHost(), SUPPORTED_SERVER_VERSION, serverVersion);
         }