Skip to content

Commit

Permalink
made constant for buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
chernser committed Aug 31, 2024
1 parent 4e23300 commit b81bde2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,8 @@ public Client build() {
return new Client(this.endpoints, this.configuration, this.useNewImplementation, this.sharedOperationExecutor);
}

private static final int DEFAULT_NETWORK_BUFFER_SIZE = 300_000;

private void setDefaults() {

// set default database name if not specified
Expand Down Expand Up @@ -858,7 +860,7 @@ private void setDefaults() {
}

if (!configuration.containsKey("client_network_buffer_size")) {
setClientNetworkBufferSize(8192);
setClientNetworkBufferSize(DEFAULT_NETWORK_BUFFER_SIZE);
}

if (!configuration.containsKey(ClickHouseClientOption.RETRY.getKey())) {
Expand Down

0 comments on commit b81bde2

Please sign in to comment.