diff --git a/CHANGELOG.md b/CHANGELOG.md index c8c0432d7a..7b5eaac412 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ #### Changes +* Core: Improve command retry semantics ([#2330](https://github.com/valkey-io/valkey-glide/pull/2330)) * Node: Fix binary variant for xinfogroups and lrem ([#2324](https://github.com/valkey-io/valkey-glide/pull/2324)) * Node: Fixed missing exports ([#2301](https://github.com/valkey-io/valkey-glide/pull/2301)) * Node: Use `options` struct for all optional arguments ([#2287](https://github.com/valkey-io/valkey-glide/pull/2287)) diff --git a/glide-core/src/client/mod.rs b/glide-core/src/client/mod.rs index f20ad3e7e0..9d0c785945 100644 --- a/glide-core/src/client/mod.rs +++ b/glide-core/src/client/mod.rs @@ -23,7 +23,11 @@ mod value_conversion; use tokio::sync::mpsc; pub const HEARTBEAT_SLEEP_DURATION: Duration = Duration::from_secs(1); -pub const DEFAULT_RETRIES: u32 = 3; + +// Dont use retries because we do not expose this configuration to the user, +// making it is unexpected to have command retries +pub const DEFAULT_RETRIES: u32 = 0; + pub const DEFAULT_RESPONSE_TIMEOUT: Duration = Duration::from_millis(250); pub const DEFAULT_CONNECTION_ATTEMPT_TIMEOUT: Duration = Duration::from_millis(250); pub const DEFAULT_PERIODIC_TOPOLOGY_CHECKS_INTERVAL: Duration = Duration::from_secs(60);