Browse Source

Remove duplicated GRPC invocation

jianghua 4 years ago
parent
commit
dd5ccff1b8
1 changed files with 1 additions and 1 deletions
  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 {
     try {
       Response response = getServerVersion();
       Response response = getServerVersion();
       if (response.ok()) {
       if (response.ok()) {
-        String serverVersion = getServerVersion().getMessage();
+        String serverVersion = response.getMessage();
         if (!serverVersion.matches("^" + SUPPORTED_SERVER_VERSION + "(\\..*)?$")) {
         if (!serverVersion.matches("^" + SUPPORTED_SERVER_VERSION + "(\\..*)?$")) {
           throw new UnsupportedServerVersion(connectParam.getHost(), SUPPORTED_SERVER_VERSION, serverVersion);
           throw new UnsupportedServerVersion(connectParam.getHost(), SUPPORTED_SERVER_VERSION, serverVersion);
         }
         }