From 6e9931c422b176f27989203da712bc1f44ddfc2a Mon Sep 17 00:00:00 2001 From: William Chong Date: Tue, 14 Apr 2026 10:23:42 +0400 Subject: [PATCH] docs: fix gossipTimeout default value and unit The documentation stated the default as 5 seconds, and the Javadoc listed it as 3. The actual code default is 3000 milliseconds. Updated both locations to reflect the correct value and unit. --- docs/api/getting-started.md | 2 +- src/main/java/io/kurrent/dbclient/KurrentDBClientSettings.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/getting-started.md b/docs/api/getting-started.md index b43ca9b4..6a97fbae 100644 --- a/docs/api/getting-started.md +++ b/docs/api/getting-started.md @@ -84,7 +84,7 @@ There are a number of query parameters that can be used in the connection string | `connectionName` | Any string | None | Connection name | | `maxDiscoverAttempts` | Number | `10` | Number of attempts to discover the cluster. | | `discoveryInterval` | Number | `100` | Cluster discovery polling interval in milliseconds. | -| `gossipTimeout` | Number | `5` | Gossip timeout in seconds, when the gossip call times out, it will be retried. | +| `gossipTimeout` | Number | `3000` | Gossip timeout in milliseconds, when the gossip call times out, it will be retried. | | `nodePreference` | `leader`, `follower`, `random`, `readOnlyReplica` | `leader` | Preferred node role. When creating a client for write operations, always use `leader`. | | `tlsVerifyCert` | `true`, `false` | `true` | In secure mode, set to `true` when using an untrusted connection to the node if you don't have the CA file available. Don't use in production. | | `tlsCaFile` | String, file path | None | Path to the CA file when connecting to a secure cluster with a certificate that's not signed by a trusted CA. | diff --git a/src/main/java/io/kurrent/dbclient/KurrentDBClientSettings.java b/src/main/java/io/kurrent/dbclient/KurrentDBClientSettings.java index fc3c9837..65f1b911 100644 --- a/src/main/java/io/kurrent/dbclient/KurrentDBClientSettings.java +++ b/src/main/java/io/kurrent/dbclient/KurrentDBClientSettings.java @@ -16,7 +16,7 @@ *