Upgrade tarpc and tokio (#13293)
This commit is contained in:
@@ -28,7 +28,7 @@ solana-sdk = { path = "../sdk", version = "1.5.0" }
|
||||
solana-stake-program = { path = "../programs/stake", version = "1.5.0" }
|
||||
tempfile = "3.1.0"
|
||||
thiserror = "1.0"
|
||||
tokio = "0.2"
|
||||
tokio = { version = "0.3", features = ["full"] }
|
||||
url = "2.1"
|
||||
|
||||
[dev-dependencies]
|
||||
|
@@ -27,7 +27,7 @@ use std::{
|
||||
io,
|
||||
time::Duration,
|
||||
};
|
||||
use tokio::time::delay_for;
|
||||
use tokio::time::sleep;
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
|
||||
struct Allocation {
|
||||
@@ -417,7 +417,7 @@ async fn finalize_transactions(
|
||||
}
|
||||
|
||||
// Sleep for about 1 slot
|
||||
delay_for(Duration::from_millis(500)).await;
|
||||
sleep(Duration::from_millis(500)).await;
|
||||
let opt_conf = update_finalized_transactions(client, db).await?;
|
||||
opt_confirmations = opt_conf;
|
||||
}
|
||||
|
@@ -22,7 +22,7 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||
let url = Url::parse(&rpc_banks_url)?;
|
||||
let host_port = (url.host_str().unwrap(), url.port().unwrap());
|
||||
|
||||
let mut runtime = Runtime::new().unwrap();
|
||||
let runtime = Runtime::new().unwrap();
|
||||
let mut banks_client = runtime.block_on(start_tcp_client(&host_port))?;
|
||||
|
||||
match command_args.command {
|
||||
|
Reference in New Issue
Block a user