Skip to content

Commit 660160b

Browse files
author
Stan Drozd
committed
pyth2wormhole-client: Switch to multi-threaded tokio runtime
1 parent ef37c86 commit 660160b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

solana/pyth2wormhole/client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ solana-sdk = "=1.10.31"
2929
solana-transaction-status = "=1.10.31"
3030
# solitaire-client = {path = "../../solitaire/client"}
3131
solitaire = {git = "https://github.com/wormhole-foundation/wormhole", tag = "v2.8.9"}
32-
tokio = {version = "1", features = ["sync", "rt", "time"]}
32+
tokio = {version = "1", features = ["sync", "rt-multi-thread", "time"]}
3333
futures = "0.3.21"
3434

3535
[dev-dependencies]

solana/pyth2wormhole/client/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ use pyth2wormhole_client::*;
6868

6969
pub const SEQNO_PREFIX: &'static str = "Program log: Sequence: ";
7070

71-
#[tokio::main]
71+
#[tokio::main(flavor = "multi_thread")]
7272
async fn main() -> Result<(), ErrBox> {
7373
let cli = Cli::parse();
7474
init_logging();

0 commit comments

Comments
 (0)