Skip to content

Commit

Permalink
Use multi-thread runtime for tokio in vnd-test-client
Browse files Browse the repository at this point in the history
  • Loading branch information
bigspider committed Oct 11, 2024
1 parent f3ba9d9 commit 7936ef9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/test/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion apps/test/client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ fn parse_command(line: &str) -> Result<CliCommand, String> {
}
}

#[tokio::main(flavor = "current_thread")]
#[tokio::main(flavor = "multi_thread")]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let args = Args::parse();

Expand Down

0 comments on commit 7936ef9

Please sign in to comment.