Skip to content

Commit

Permalink
Make the CI happy with all features enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
temeddix committed Jun 18, 2024
1 parent d6affcc commit 10d7203
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rust_crate/src/interface_os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ where
#[cfg(feature = "multi-worker")]
{
static TOKIO_RUNTIME: Mutex<Option<tokio::runtime::Runtime>> = Mutex::new(None);
let tokio_runtime = Builder::new_multi_thread().enable_all().build()?;
let tokio_runtime = Builder::new_multi_thread()
.enable_all()
.build()
.map_err(|_| RinfError::BuildRuntime)?;
tokio_runtime.spawn(async {
main_future.await;
});
Expand Down

0 comments on commit 10d7203

Please sign in to comment.