From 32286ed052bc241c4387d1f4aece5e022506d44c Mon Sep 17 00:00:00 2001 From: Marcin Antas Date: Wed, 15 Nov 2023 08:01:18 +0100 Subject: [PATCH] Bring back the old Config constructor that's without gRPC settings --- src/main/java/io/weaviate/client/Config.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/io/weaviate/client/Config.java b/src/main/java/io/weaviate/client/Config.java index 1a28919a..229c7a64 100644 --- a/src/main/java/io/weaviate/client/Config.java +++ b/src/main/java/io/weaviate/client/Config.java @@ -49,6 +49,10 @@ public Config(String scheme, String host, Map headers, int conne this.socketTimeout = socketTimeout; } + public Config(String scheme, String host, Map headers, int timeout) { + this(scheme, host, headers, timeout, false, ""); + } + public Config(String scheme, String host, Map headers, int timeout, boolean gRPCSecured, String gRPCHost) { this.scheme = scheme; this.host = host;