mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-26 12:51:30 +00:00
Reduce initial federation retry delay (#4346)
This commit is contained in:
parent
5f603985c0
commit
35db0dc8e7
1 changed files with 1 additions and 1 deletions
|
@ -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)))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue