Cap timeout duration

This commit is contained in:
Louis Dureuil 2024-03-05 12:19:25 +01:00
parent 36d17110d8
commit 0c216048b5
No known key found for this signature in database

View File

@ -178,6 +178,8 @@ impl Embedder {
retry.into_duration(attempt)
}
}?;
let retry_duration = retry_duration.min(std::time::Duration::from_secs(60)); // don't wait more than a minute
tracing::warn!(
"Attempt #{}, retrying after {}ms.",
attempt,