mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
Cap timeout duration
This commit is contained in:
parent
36d17110d8
commit
0c216048b5
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue