From 6cbabc3515857f778edbe893292f8ed31e6eb070 Mon Sep 17 00:00:00 2001 From: atlas Date: Sun, 16 Aug 2026 21:28:50 +0200 Subject: [PATCH] docs: the first reconnect delay is 500ms, not ~1s Caught in review. Cosmetic, but a comment that misstates the constant beside it is the kind of thing the next reader trusts instead of the code. --- swarm-queue-client/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarm-queue-client/src/lib.rs b/swarm-queue-client/src/lib.rs index bf509e10..c95c6cc3 100644 --- a/swarm-queue-client/src/lib.rs +++ b/swarm-queue-client/src/lib.rs @@ -436,7 +436,7 @@ pub async fn connect(cfg: QueueConfig) -> Result { // See `MAX_RECONNECT_DELAY`. The library's default clamps at 4s forever, // which turns an unreachable queue into a permanent 4s poll — and, before // the cache above, a permanent 4s token-request loop against authelia. - // Exponential from ~1s so a momentary blip still reconnects promptly. + // Exponential from 500ms so a momentary blip still reconnects promptly. .reconnect_delay_callback(|attempts| { let exp = u32::try_from(attempts.saturating_sub(1)).unwrap_or(u32::MAX); std::cmp::min(