From 978f7c4fc05ddb102c5ed477d864827484088be3 Mon Sep 17 00:00:00 2001 From: qima Date: Wed, 22 Jan 2025 23:58:44 +0800 Subject: [PATCH] fix(client): non-blocking sleep during quoting re-attempts --- autonomi/src/client/quote.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autonomi/src/client/quote.rs b/autonomi/src/client/quote.rs index 9dd4e4059f..a4f7ad1fba 100644 --- a/autonomi/src/client/quote.rs +++ b/autonomi/src/client/quote.rs @@ -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; } }