fix: update retry backoff

This commit is contained in:
Hachi-R
2025-04-11 13:51:32 -03:00
parent e27536c6b3
commit d2a868b504

View File

@@ -552,7 +552,7 @@ impl Downloader {
return Err(e);
}
tokio::time::sleep(tokio::time::Duration::from_millis(
RETRY_BACKOFF_MS * retries as u64,
RETRY_BACKOFF_MS * (2_u64.pow(retries as u32 - 1)),
))
.await;
}