From c8fd6d55379fb4799614d1b49d973464a67aeeb4 Mon Sep 17 00:00:00 2001 From: Tal <83217276+talwat@users.noreply.github.com> Date: Fri, 5 Dec 2025 21:30:07 +0100 Subject: [PATCH] fix: switch to a single threaded runtime for more predictable behaviour --- Cargo.toml | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 249aa71..1068446 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,7 +30,7 @@ fastrand = "2.3.0" thiserror = "2.0.12" # Async -tokio = { version = "1.41.1", features = ["macros", "rt-multi-thread", "fs"], default-features = false } +tokio = { version = "1.41.1", features = ["macros", "rt", "fs"], default-features = false } arc-swap = "1.7.1" futures = "0.3.31" diff --git a/src/main.rs b/src/main.rs index 99f6d43..020bbb4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -101,7 +101,7 @@ pub fn data_dir() -> crate::Result { /// Parses CLI arguments, initializes the audio stream and player, then /// runs the main event loop. On exit it performs cleanup of the UI and /// returns the inner result. -#[tokio::main] +#[tokio::main(flavor = "current_thread")] async fn main() -> eyre::Result<()> { let args = Args::parse();