Skip to content

Commit ff6d8e1

Browse files
committed
fix sleep in async context
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
1 parent 50d8ba7 commit ff6d8e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/azure.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ async fn get_file_from_blob(filename: String) -> ReceivedFile {
415415
headers_file_exists = true;
416416
break;
417417
}
418-
std::thread::sleep(std::time::Duration::from_millis(1000));
418+
tokio::time::sleep(std::time::Duration::from_millis(1000)).await;
419419
debug_log!(
420420
"Waiting for headers file {} to exist: {} seconds",
421421
cache_filename_headers,

0 commit comments

Comments
 (0)