This is an automated email from the ASF dual-hosted git repository. yuxia pushed a commit to branch improve-creditial-cache in repository https://gitbox.apache.org/repos/asf/fluss-rust.git
commit 4c0e3da37d38dc1d399c5444942796fd18078393 Author: luoyuxia <[email protected]> AuthorDate: Mon Jan 26 19:06:49 2026 +0800 minor fix --- crates/fluss/src/client/credentials.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/fluss/src/client/credentials.rs b/crates/fluss/src/client/credentials.rs index 30e44cb..93a5366 100644 --- a/crates/fluss/src/client/credentials.rs +++ b/crates/fluss/src/client/credentials.rs @@ -34,10 +34,10 @@ const DEFAULT_TOKEN_RENEWAL_RATIO: f64 = 0.8; const DEFAULT_RENEWAL_RETRY_BACKOFF: Duration = Duration::from_secs(30); /// Minimum delay between refreshes const MIN_RENEWAL_DELAY: Duration = Duration::from_secs(1); -/// Maximum delay between refreshes (24 hours) - prevents overflow and ensures periodic refresh -const MAX_RENEWAL_DELAY: Duration = Duration::from_secs(24 * 60 * 60); +/// Maximum delay between refreshes (7 days) - prevents overflow and ensures periodic refresh +const MAX_RENEWAL_DELAY: Duration = Duration::from_secs(7 * 24 * 60 * 60); /// Default refresh interval for tokens without expiration (never expires) -const DEFAULT_NON_EXPIRING_REFRESH_INTERVAL: Duration = Duration::from_secs(3600); // 1 hour +const DEFAULT_NON_EXPIRING_REFRESH_INTERVAL: Duration = Duration::from_secs(7 * 24 * 60 * 60); // 7 day /// Type alias for credentials properties receiver /// - `None` = not yet fetched, should wait
