Reduce initial federation retry delay (#4346)

This commit is contained in:
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

View file

@ -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)))
}