Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Tokio to version 1.12.0 #2920

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tower-batch/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2018"
futures = "0.3.17"
futures-core = "0.3.13"
pin-project = "1.0.7"
tokio = { version = "0.3.6", features = ["time", "sync", "stream", "tracing", "macros"] }
tokio = { version = "1.13.0", features = ["time", "sync", "tracing", "macros"] }
tower = { version = "0.4", features = ["util", "buffer"] }
tracing = "0.1.29"
tracing-futures = "0.2.5"
Expand All @@ -18,7 +18,7 @@ tracing-futures = "0.2.5"
color-eyre = "0.5.11"
ed25519-zebra = "3.0.0"
rand = "0.8"
tokio = { version = "0.3.6", features = ["full"]}
tokio = { version = "1.13.0", features = ["full"]}
tokio-test = "0.4.2"
tower-fallback = { path = "../tower-fallback/" }
tower-test = "0.4.0"
Expand Down
2 changes: 1 addition & 1 deletion tower-fallback/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ tracing = "0.1"

[dev-dependencies]
zebra-test = { path = "../zebra-test/" }
tokio = { version = "0.3.6", features = ["full"]}
tokio = { version = "1.13.0", features = ["full"]}
4 changes: 2 additions & 2 deletions zebra-consensus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ futures = "0.3.17"
futures-util = "0.3.17"
metrics = "0.13.0-alpha.8"
thiserror = "1.0.30"
tokio = { version = "0.3.6", features = ["time", "sync", "stream", "tracing"] }
tokio = { version = "1.13.0", features = ["time", "sync", "tracing"] }
tower = { version = "0.4", features = ["timeout", "util", "buffer"] }
tracing = "0.1.29"
tracing-futures = "0.2.5"
Expand All @@ -46,7 +46,7 @@ proptest = "0.10"
proptest-derive = "0.3.0"
rand07 = { package = "rand", version = "0.7" }
spandoc = "0.2"
tokio = { version = "0.3.6", features = ["full"] }
tokio = { version = "1.13.0", features = ["full"] }
tracing-error = "0.1.2"
tracing-subscriber = "0.2.25"

Expand Down
7 changes: 5 additions & 2 deletions zebra-consensus/src/checkpoint/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ use super::types::Progress::*;
use super::types::TargetHeight::*;

use color_eyre::eyre::{eyre, Report};
use futures::{future::TryFutureExt, stream::FuturesUnordered};
use futures::{
future::TryFutureExt,
stream::{FuturesUnordered, StreamExt},
};
use std::{cmp::min, convert::TryInto, mem::drop, time::Duration};
use tokio::{stream::StreamExt, time::timeout};
use tokio::time::timeout;
use tower::{Service, ServiceExt};
use tracing_futures::Instrument;

Expand Down
4 changes: 2 additions & 2 deletions zebra-network/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ serde = { version = "1", features = ["serde_derive"] }
thiserror = "1"

futures = "0.3"
tokio = { version = "0.3.6", features = ["net", "time", "stream", "tracing", "macros", "rt-multi-thread"] }
tokio = { version = "1.13.0", features = ["net", "time", "tracing", "macros", "rt-multi-thread"] }
tokio-util = { version = "0.5", features = ["codec"] }
tower = { version = "0.4", features = ["retry", "discover", "load", "load-shed", "timeout", "util", "buffer"] }

Expand All @@ -38,7 +38,7 @@ zebra-chain = { path = "../zebra-chain" }
[dev-dependencies]
proptest = "0.10"
proptest-derive = "0.3"
tokio = { version = "0.3.6", features = ["test-util"] }
tokio = { version = "1.13.0", features = ["test-util"] }
toml = "0.5"

zebra-chain = { path = "../zebra-chain", features = ["proptest-impl"] }
Expand Down
4 changes: 2 additions & 2 deletions zebra-state/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ metrics = "0.13.0-alpha.8"
tower = { version = "0.4", features = ["buffer", "util"] }
tracing = "0.1"
thiserror = "1.0.30"
tokio = { version = "0.3.6", features = ["sync"] }
tokio = { version = "1.13.0", features = ["sync"] }
displaydoc = "0.2.2"
rocksdb = "0.16.0"
tempdir = "0.3.7"
Expand All @@ -46,7 +46,7 @@ once_cell = "1.8"
itertools = "0.10.1"
spandoc = "0.2"
tempdir = "0.3.7"
tokio = { version = "0.3.6", features = ["full"] }
tokio = { version = "1.13.0", features = ["full"] }
# TODO: replace w/ crate version when released: https://github.com/ZcashFoundation/zebra/issues/2083
# Note: if updating this, also update the workspace Cargo.toml to match.
halo2 = "=0.1.0-beta.1"
Expand Down
2 changes: 1 addition & 1 deletion zebra-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ proptest = "0.10.1"
rand = "0.8"
regex = "1.4.6"

tokio = { version = "1.13.0", features = ["full"] }
tower = { version = "0.4", features = ["util"] }
tokio = { version = "0.3", features = ["full"] }
futures = "0.3.17"

color-eyre = "0.5.11"
Expand Down
4 changes: 2 additions & 2 deletions zebrad/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ chrono = "0.4"

hyper = { version = "0.14.0-dev", features = ["full"] }
futures = "0.3"
tokio = { version = "0.3.6", features = ["time", "rt-multi-thread", "stream", "macros", "tracing", "signal"] }
tokio = { version = "1.13.0", features = ["time", "rt-multi-thread", "macros", "tracing", "signal"] }
tower = { version = "0.4", features = ["hedge", "limit"] }
pin-project = "1.0.7"

Expand Down Expand Up @@ -57,7 +57,7 @@ once_cell = "1.8"
regex = "1.4.6"
semver = "1.0.3"
tempdir = "0.3.7"
tokio = { version = "0.3.6", features = ["full", "test-util"] }
tokio = { version = "1.13.0", features = ["full", "test-util"] }

proptest = "0.10"
proptest-derive = "0.3"
Expand Down