Upgrade tarpc and tokio (#13293)

This commit is contained in:
Greg Fitzgerald
2020-10-29 19:21:18 -06:00
committed by GitHub
parent b5c8b86e7c
commit ca00197009
10 changed files with 269 additions and 130 deletions

View File

@@ -14,8 +14,8 @@ bincode = "1.3.1"
futures = "0.3"
solana-banks-interface = { path = "../banks-interface", version = "1.5.0" }
solana-sdk = { path = "../sdk", version = "1.5.0" }
tarpc = { version = "0.22.0", features = ["full"] }
tokio = "0.2"
tarpc = { version = "0.23.0", features = ["full"] }
tokio = { version = "0.3", features = ["full"] }
tokio-serde = { version = "0.6", features = ["bincode"] }
[dev-dependencies]

View File

@@ -216,7 +216,7 @@ mod tests {
use solana_sdk::{message::Message, signature::Signer, system_instruction};
use std::sync::{Arc, RwLock};
use tarpc::transport;
use tokio::{runtime::Runtime, time::delay_for};
use tokio::{runtime::Runtime, time::sleep};
#[test]
fn test_banks_client_new() {
@@ -285,7 +285,7 @@ mod tests {
if root_slot > last_valid_slot {
break;
}
delay_for(Duration::from_millis(100)).await;
sleep(Duration::from_millis(100)).await;
status = banks_client.get_transaction_status(signature).await?;
}
assert!(status.unwrap().err.is_none());