Reduce initial federation retry delay (#4346)

add_back_newest_comment_time
Sander Saarend 2024-01-03 11:31:23 +02:00 committed by GitHub
parent 5f603985c0
commit 35db0dc8e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -43,5 +43,5 @@ impl Default for SuccessResponse {
/// how long to sleep based on how many retries have already happened /// how long to sleep based on how many retries have already happened
pub fn federate_retry_sleep_duration(retry_count: i32) -> Duration { 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)))
} }