diff --git a/substrate/Cargo.lock b/substrate/Cargo.lock index 90761c3807..e5382f07d3 100644 --- a/substrate/Cargo.lock +++ b/substrate/Cargo.lock @@ -3995,7 +3995,7 @@ dependencies = [ "substrate-inherents 1.0.0", "substrate-primitives 1.0.0", "substrate-test-client 1.0.0", - "tokio 0.1.19 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-timer 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] diff --git a/substrate/core/consensus/common/Cargo.toml b/substrate/core/consensus/common/Cargo.toml index dab3878863..728c25ccc8 100644 --- a/substrate/core/consensus/common/Cargo.toml +++ b/substrate/core/consensus/common/Cargo.toml @@ -15,7 +15,7 @@ error-chain = "0.12" futures = "0.1" runtime_version = { package = "sr-version", path = "../../sr-version" } runtime_primitives = { package = "sr-primitives", path = "../../sr-primitives" } -tokio = "0.1.7" +tokio-timer = "0.2" parity-codec = { version = "3.3", features = ["derive"] } [dev-dependencies] @@ -23,4 +23,4 @@ test_client = { package = "substrate-test-client", path = "../../test-client" } [features] default = [] -test-helpers = [] \ No newline at end of file +test-helpers = [] diff --git a/substrate/core/consensus/common/src/error.rs b/substrate/core/consensus/common/src/error.rs index 0f1914087b..f338dc9ce4 100644 --- a/substrate/core/consensus/common/src/error.rs +++ b/substrate/core/consensus/common/src/error.rs @@ -35,7 +35,7 @@ error_chain! { } /// Unable to schedule wakeup. - FaultyTimer(e: ::tokio::timer::Error) { + FaultyTimer(e: ::tokio_timer::Error) { description("Timer error"), display("Timer error: {}", e), }