mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-22 14:16:19 +00:00
limitar delay al que retryear
This commit is contained in:
parent
5a6d8c635e
commit
ed7af7621d
1 changed files with 1 additions and 0 deletions
|
@ -192,6 +192,7 @@ pub async fn fetch_body(client: &reqwest::Client, url: &str) -> reqwest::Result<
|
|||
pub fn get_retry_policy() -> again::RetryPolicy {
|
||||
RetryPolicy::exponential(Duration::from_millis(300))
|
||||
.with_max_retries(20)
|
||||
.with_max_delay(Duration::from_secs(40))
|
||||
.with_jitter(true)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue