File tree Expand file tree Collapse file tree
sdk-core/src/main/java/io/milvus/v2/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ public void validatePort(ConnectConfig connectConfig) {
279279
280280 // Test if port is reachable
281281 try (Socket socket = new Socket ()) {
282- socket .connect (new InetSocketAddress (host , port ), connectConfig .getConnectTimeoutMs ());
282+ socket .connect (new InetSocketAddress (host , port ), ( int ) connectConfig .getConnectTimeoutMs ());
283283 logger .debug ("Successfully validated port: {}" , port );
284284 } catch (IOException e ) {
285285 String message = String .format (
@@ -303,7 +303,7 @@ public void validateCert(ConnectConfig connectConfig) {
303303 }
304304
305305 try (SSLSocket socket = (SSLSocket ) SSLSocketFactory .getDefault ().createSocket ()) {
306- socket .connect (new InetSocketAddress (connectConfig .getHost (), connectConfig .getPort ()), connectConfig .getConnectTimeoutMs ());
306+ socket .connect (new InetSocketAddress (connectConfig .getHost (), connectConfig .getPort ()), ( int ) connectConfig .getConnectTimeoutMs ());
307307 socket .startHandshake ();
308308 logger .debug ("SSL certificate validation passed" );
309309 } catch (SSLException e ) {
You can’t perform that action at this time.
0 commit comments