pyth2wormhole-client: Switch to multi-threaded tokio runtime

This commit is contained in:
Stan Drozd 2022-10-06 19:04:31 +02:00
parent ef37c86b32
commit 660160b31a
No known key found for this signature in database
GPG Key ID: 8360D3E69603075F
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ solana-sdk = "=1.10.31"
solana-transaction-status = "=1.10.31" solana-transaction-status = "=1.10.31"
# solitaire-client = {path = "../../solitaire/client"} # solitaire-client = {path = "../../solitaire/client"}
solitaire = {git = "https://github.com/wormhole-foundation/wormhole", tag = "v2.8.9"} 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" futures = "0.3.21"
[dev-dependencies] [dev-dependencies]

View File

@ -68,7 +68,7 @@ use pyth2wormhole_client::*;
pub const SEQNO_PREFIX: &'static str = "Program log: Sequence: "; pub const SEQNO_PREFIX: &'static str = "Program log: Sequence: ";
#[tokio::main] #[tokio::main(flavor = "multi_thread")]
async fn main() -> Result<(), ErrBox> { async fn main() -> Result<(), ErrBox> {
let cli = Cli::parse(); let cli = Cli::parse();
init_logging(); init_logging();