Bump tokio to 1.1 (#15926)

This commit is contained in:
Tyera Eulberg
2021-03-16 15:32:50 -06:00
committed by GitHub
parent 0c4c89ff4a
commit 654449ce91
3 changed files with 5 additions and 42 deletions

View File

@ -52,7 +52,8 @@ solana-storage-proto = { path = "../storage-proto", version = "=1.7.0" }
solana-vote-program = { path = "../programs/vote", version = "=1.7.0" }
tempfile = "3.1.0"
thiserror = "1.0"
tokio = { version = "0.3", features = ["full"] }
tokio = { version = "1.1", features = ["full"] }
tokio-stream = "0.1"
trees = "0.2.1"
[dependencies.rocksdb]

View File

@ -168,7 +168,7 @@ pub async fn upload_confirmed_blocks(
use futures::stream::StreamExt;
let mut stream =
tokio::stream::iter(receiver.into_iter()).chunks(NUM_BLOCKS_TO_UPLOAD_IN_PARALLEL);
tokio_stream::iter(receiver.into_iter()).chunks(NUM_BLOCKS_TO_UPLOAD_IN_PARALLEL);
while let Some(blocks) = stream.next().await {
if exit.load(Ordering::Relaxed) {