From 660160b31af2e1f7ae0ec6aa13a38b3bb5fe6297 Mon Sep 17 00:00:00 2001 From: Stan Drozd Date: Thu, 6 Oct 2022 19:04:31 +0200 Subject: [PATCH] pyth2wormhole-client: Switch to multi-threaded tokio runtime --- solana/pyth2wormhole/client/Cargo.toml | 2 +- solana/pyth2wormhole/client/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/solana/pyth2wormhole/client/Cargo.toml b/solana/pyth2wormhole/client/Cargo.toml index 140eddfe..ae627cd9 100644 --- a/solana/pyth2wormhole/client/Cargo.toml +++ b/solana/pyth2wormhole/client/Cargo.toml @@ -29,7 +29,7 @@ solana-sdk = "=1.10.31" solana-transaction-status = "=1.10.31" # solitaire-client = {path = "../../solitaire/client"} solitaire = {git = "https://github.com/wormhole-foundation/wormhole", tag = "v2.8.9"} -tokio = {version = "1", features = ["sync", "rt", "time"]} +tokio = {version = "1", features = ["sync", "rt-multi-thread", "time"]} futures = "0.3.21" [dev-dependencies] diff --git a/solana/pyth2wormhole/client/src/main.rs b/solana/pyth2wormhole/client/src/main.rs index 837a6a33..cd201bc9 100644 --- a/solana/pyth2wormhole/client/src/main.rs +++ b/solana/pyth2wormhole/client/src/main.rs @@ -68,7 +68,7 @@ use pyth2wormhole_client::*; pub const SEQNO_PREFIX: &'static str = "Program log: Sequence: "; -#[tokio::main] +#[tokio::main(flavor = "multi_thread")] async fn main() -> Result<(), ErrBox> { let cli = Cli::parse(); init_logging();