From 6f68c59ba270076cb0e2c548b2ea11a181a74672 Mon Sep 17 00:00:00 2001 From: Ewan Harris Date: Thu, 4 Jan 2024 15:44:39 +0000 Subject: [PATCH] fix(java-sdk): fix incorrect check for whether transactionChunkSize is not set --- .../java/template/config-ClientWriteOptions.java.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/clients/java/template/config-ClientWriteOptions.java.mustache b/config/clients/java/template/config-ClientWriteOptions.java.mustache index 22ef7643..fd6a5bac 100644 --- a/config/clients/java/template/config-ClientWriteOptions.java.mustache +++ b/config/clients/java/template/config-ClientWriteOptions.java.mustache @@ -43,6 +43,6 @@ public class ClientWriteOptions implements AdditionalHeadersSupplier { } public int getTransactionChunkSize() { - return transactionChunkSize >= 0 ? transactionChunkSize : 1; + return transactionChunkSize > 0 ? transactionChunkSize : 1; } }