Merge pull request #440 from oopsbagel/tokio-rt-current-thread

installer: tokio runtime flavor current_thread
This commit is contained in:
oopsbagel
2025-07-09 23:33:16 +00:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ nusb = "0.1.13"
reqwest = { version = "0.12.15", features = ["json"], default-features = false }
serde = { version = "1.0.219", features = ["derive"] }
sha2 = "0.10.8"
tokio = { version = "1.44.2", features = ["io-util", "macros", "rt-multi-thread"], default-features = false }
tokio = { version = "1.44.2", features = ["io-util", "macros", "rt"], default-features = false }
tokio-retry2 = "0.5.7"
tokio-stream = "0.1.17"

View File

@@ -180,7 +180,7 @@ async fn run() -> Result<(), Error> {
Ok(())
}
#[tokio::main]
#[tokio::main(flavor = "current_thread")]
async fn main() {
if let Err(e) = run().await {
eprintln!("{e:?}");