From 35db0dc8e7ea3b911015b54f6b45d83666938b3e Mon Sep 17 00:00:00 2001 From: Sander Saarend Date: Wed, 3 Jan 2024 11:31:23 +0200 Subject: [PATCH] Reduce initial federation retry delay (#4346) --- crates/api_common/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/api_common/src/lib.rs b/crates/api_common/src/lib.rs index a82b9327e..2b69a13ff 100644 --- a/crates/api_common/src/lib.rs +++ b/crates/api_common/src/lib.rs @@ -43,5 +43,5 @@ impl Default for SuccessResponse { /// how long to sleep based on how many retries have already happened pub fn federate_retry_sleep_duration(retry_count: i32) -> Duration { - Duration::from_secs_f64(10.0 * 2.0_f64.powf(f64::from(retry_count))) + Duration::from_secs_f64(2.0_f64.powf(f64::from(retry_count))) }