Skip to content

Commit

Permalink
fix(client): non-blocking sleep during quoting re-attempts
Browse files Browse the repository at this point in the history
  • Loading branch information
maqi committed Jan 22, 2025
1 parent bd6edca commit 978f7c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autonomi/src/client/quote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ async fn fetch_store_quote_with_retries(
}
// Shall have a sleep between retries to avoid choking the network.
// This shall be rare to happen though.
std::thread::sleep(std::time::Duration::from_secs(5));
tokio::time::sleep(std::time::Duration::from_secs(5)).await;
}
}

Expand Down

0 comments on commit 978f7c4

Please sign in to comment.