Skip to content

Commit 57b01a4

Browse files
cleanup: remove unused private retries field in Client
1 parent 512c0e0 commit 57b01a4

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

  • client-v2/src/main/java/com/clickhouse/client/api

client-v2/src/main/java/com/clickhouse/client/api/Client.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ public class Client implements AutoCloseable {
141141
private String dbUser;
142142
private String serverVersion;
143143
private final Object metricsRegistry;
144-
private final int retries;
145144
private LZ4Factory lz4Factory = null;
146145
private final Supplier<String> queryIdGenerator;
147146
private final ClientNodeSelector nodeSelector;
@@ -191,8 +190,6 @@ private Client(Collection<Endpoint> endpoints, Map<String,String> configuration,
191190
this.endpoints = tmpEndpoints.build();
192191
this.nodeSelector = new ClientNodeSelector(this.endpoints);
193192

194-
String retry = configuration.get(ClientConfigProperties.RETRY_ON_FAILURE.getKey());
195-
this.retries = retry == null ? 0 : Integer.parseInt(retry);
196193
boolean useNativeCompression = !MapUtils.getFlag(configuration, ClientConfigProperties.DISABLE_NATIVE_COMPRESSION.getKey(), false);
197194
if (useNativeCompression) {
198195
this.lz4Factory = LZ4Factory.fastestInstance();

0 commit comments

Comments
 (0)