From 7936ef90e80c70ed0d1392d2aefa32b33dbc4998 Mon Sep 17 00:00:00 2001 From: Salvatore Ingala <6681844+bigspider@users.noreply.github.com> Date: Fri, 11 Oct 2024 13:51:45 +0200 Subject: [PATCH] Use multi-thread runtime for tokio in vnd-test-client --- apps/test/client/Cargo.toml | 2 +- apps/test/client/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/test/client/Cargo.toml b/apps/test/client/Cargo.toml index e609874..cca9adc 100644 --- a/apps/test/client/Cargo.toml +++ b/apps/test/client/Cargo.toml @@ -9,7 +9,7 @@ hex = "0.4.3" hidapi = "2.6.3" ledger-transport-hid = "0.11.0" sdk = { package = "vanadium-client-sdk", path = "../../../client-sdk"} -tokio = { version = "1.38.1", features = ["io-util", "macros", "net", "rt", "sync"] } +tokio = { version = "1.38.1", features = ["io-util", "macros", "net", "rt", "rt-multi-thread", "sync"] } [lib] name = "vnd_test_client" diff --git a/apps/test/client/src/main.rs b/apps/test/client/src/main.rs index 4f6b360..35d8908 100644 --- a/apps/test/client/src/main.rs +++ b/apps/test/client/src/main.rs @@ -98,7 +98,7 @@ fn parse_command(line: &str) -> Result { } } -#[tokio::main(flavor = "current_thread")] +#[tokio::main(flavor = "multi_thread")] async fn main() -> Result<(), Box> { let args = Args::parse();