fix: switch to a single threaded runtime for more predictable behaviour

This commit is contained in:
Tal 2025-12-05 21:30:07 +01:00
parent ab2d559129
commit c8fd6d5537
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ fastrand = "2.3.0"
thiserror = "2.0.12" thiserror = "2.0.12"
# Async # 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" arc-swap = "1.7.1"
futures = "0.3.31" futures = "0.3.31"

View File

@ -101,7 +101,7 @@ pub fn data_dir() -> crate::Result<PathBuf> {
/// Parses CLI arguments, initializes the audio stream and player, then /// Parses CLI arguments, initializes the audio stream and player, then
/// runs the main event loop. On exit it performs cleanup of the UI and /// runs the main event loop. On exit it performs cleanup of the UI and
/// returns the inner result. /// returns the inner result.
#[tokio::main] #[tokio::main(flavor = "current_thread")]
async fn main() -> eyre::Result<()> { async fn main() -> eyre::Result<()> {
let args = Args::parse(); let args = Args::parse();