Skip to content

Commit

Permalink
review sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
balanza committed Nov 11, 2024
1 parent d6f6ccb commit 8222736
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/run.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use crate::config::Scenario;
use reqwest::StatusCode;
use std::{fs, thread};
use std::fs;
use tokio::time::sleep;

#[derive(Debug)]
enum FixtureResult {
Expand Down Expand Up @@ -129,7 +130,7 @@ pub async fn run(
}
}

thread::sleep(std::time::Duration::from_millis(wait));
sleep(std::time::Duration::from_millis(wait)).await
}

for to_retry in retryable.iter() {
Expand Down

0 comments on commit 8222736

Please sign in to comment.