Skip to content

Commit

Permalink
Fixed tokio error in hot reload example
Browse files Browse the repository at this point in the history
`#[tokio::main]` macro refused to compile because it uses multithreaded runtime by default but the example disabled multithreading.
  • Loading branch information
AngelicosPhosphoros authored and udoprog committed Sep 19, 2024
1 parent 3d81bce commit 0c3e5b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/examples/hot_reloading.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::sync::Arc;
use anyhow::{Context as _, Result};
use rune::{Context, Vm};

#[tokio::main]
#[tokio::main(flavor = "current_thread")]
async fn main() -> Result<()> {
let root =
PathBuf::from(std::env::var("CARGO_MANIFEST_DIR").context("missing CARGO_MANIFEST_DIR")?);
Expand Down

0 comments on commit 0c3e5b1

Please sign in to comment.