浏览代码

pyth2wormhole-client: Switch to multi-threaded tokio runtime

Stan Drozd 3 年之前
父节点
当前提交
660160b31a
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      solana/pyth2wormhole/client/Cargo.toml
  2. 1 1
      solana/pyth2wormhole/client/src/main.rs

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