diff --git a/bfffs-fio/src/lib.rs b/bfffs-fio/src/lib.rs index a37d9d2e..32d7e500 100644 --- a/bfffs-fio/src/lib.rs +++ b/bfffs-fio/src/lib.rs @@ -166,7 +166,7 @@ pub extern "C" fn rust_ctor() { lazy_static! { static ref RUNTIME: RwLock = RwLock::new( - Builder::new_multi_thread() + Builder::new_current_thread() .enable_time() .enable_io() .build() diff --git a/bfffs/benches/fs_destroy.rs b/bfffs/benches/fs_destroy.rs index 6f37064f..b5e2b2ca 100644 --- a/bfffs/benches/fs_destroy.rs +++ b/bfffs/benches/fs_destroy.rs @@ -316,7 +316,7 @@ fn fs_destroy( Ok(()) } -#[tokio::main] +#[tokio::main(flavor = "current_thread")] async fn main() -> Result<()> { tracing_subscriber::fmt() .pretty() diff --git a/bfffs/src/bin/bfffsd/main.rs b/bfffs/src/bin/bfffsd/main.rs index 5d1f5f2b..08fa2edf 100644 --- a/bfffs/src/bin/bfffsd/main.rs +++ b/bfffs/src/bin/bfffsd/main.rs @@ -353,7 +353,7 @@ impl Bfffsd { } } -#[tokio::main] +#[tokio::main(flavor = "current_thread")] async fn main() { tracing_subscriber::fmt() .pretty()