Parcourir la source

pyth2wormhole-client: Switch to multi-threaded tokio runtime

Stan Drozd il y a 3 ans
Parent
commit
660160b31a

+ 1 - 1
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]

+ 1 - 1
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();