Skip to content

Commit

Permalink
Update src/stream/mod.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoantoniocardoso authored Nov 30, 2023
1 parent 9cafdf5 commit 5d3c4fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stream/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ impl Stream {
Ok(state) => state,
Err(error) => {
error!("Failed to recreate the stream {pipeline_id:?}: {error:#?}. Trying again in one second...");
std::thread::sleep(std::time::Duration::from_secs(1));
tokio::time::sleep(tokio::time::Duration::from_secs(1));

Check warning on line 174 in src/stream/mod.rs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, x86_64-unknown-linux-gnu, linux-desktop)

unused `tokio::time::Sleep` that must be used

Check warning on line 174 in src/stream/mod.rs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, armv7-unknown-linux-gnueabihf, armv7)

unused `tokio::time::Sleep` that must be used
continue;
}
};
Expand Down

0 comments on commit 5d3c4fd

Please sign in to comment.