Change backoff retry in proxy

This commit is contained in:
Tristan D. 2025-01-31 12:29:47 +01:00
parent f1eda67c1e
commit b3be9d2624
Signed by: tristan
SSH key fingerprint: SHA256:9oFM1J63hYWJjCnLG6C0fxBS15rwNcWwdQNMOHYKJ/4

View file

@ -315,7 +315,7 @@ async fn handle_request(
// Proxy the request // Proxy the request
let retry_policy = reqwest_retry::policies::ExponentialBackoff::builder() let retry_policy = reqwest_retry::policies::ExponentialBackoff::builder()
.retry_bounds(Duration::from_secs(1), Duration::from_secs(8)) .retry_bounds(Duration::from_millis(500), Duration::from_secs(8))
.jitter(reqwest_retry::Jitter::None) .jitter(reqwest_retry::Jitter::None)
.base(2) .base(2)
.build_with_max_retries(8); .build_with_max_retries(8);