mirror of
https://github.com/talwat/lowfi
synced 2025-12-09 16:34:12 +00:00
fix: switch to a single threaded runtime for more predictable behaviour
This commit is contained in:
parent
ab2d559129
commit
c8fd6d5537
@ -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"
|
||||||
|
|
||||||
|
|||||||
@ -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();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user