mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
Upgrade tokio to 1.22.0 and replace async-std with tokio (#12646)
* Replace deprecated libp2p feature specs with correct ones * Bump tokio to 1.21.2 * Replace async-std libp2p primitives with tokio ones * minor: rustfmt * Fix TestNet to run initialization in the tokio context * Convert telemetry test from async-std to tokio * Convert notifications tests from async-std to tokio * Convert chain sync tests from async-std to tokio * Ditch async-std completely * Make executor mandatory * Bump tokio to 1.22.0 * minor: rustfmt * Explicitly use tokio runtime in tests * Move more tests to explicit tokio runtime * Explicitly set multithreaded runtime in tokio test * minor: rustfmt * minor: fix comment * Replace async-std with tokio in MMR tests
This commit is contained in:
@@ -26,7 +26,7 @@ sp-version = { version = "5.0.0", path = "../../../primitives/version" }
|
||||
substrate-rpc-client = { path = "../rpc/client" }
|
||||
|
||||
[dev-dependencies]
|
||||
tokio = { version = "1.17.0", features = ["macros", "rt-multi-thread"] }
|
||||
tokio = { version = "1.22.0", features = ["macros", "rt-multi-thread"] }
|
||||
frame-support = { version = "4.0.0-dev", path = "../../../frame/support" }
|
||||
pallet-elections-phragmen = { version = "5.0.0-dev", path = "../../../frame/elections-phragmen" }
|
||||
|
||||
|
||||
@@ -21,5 +21,5 @@ sp-runtime = { version = "7.0.0", path = "../../../../primitives/runtime" }
|
||||
log = "0.4"
|
||||
|
||||
[dev-dependencies]
|
||||
tokio = { version = "1.17.0", features = ["macros", "rt-multi-thread", "sync"] }
|
||||
tokio = { version = "1.22.0", features = ["macros", "rt-multi-thread", "sync"] }
|
||||
sp-core = { path = "../../../../primitives/core" }
|
||||
|
||||
@@ -26,7 +26,7 @@ sp-storage = { version = "7.0.0", path = "../../../../primitives/storage" }
|
||||
[dev-dependencies]
|
||||
scale-info = "2.1.1"
|
||||
jsonrpsee = { version = "0.15.1", features = ["ws-client", "jsonrpsee-types"] }
|
||||
tokio = "1.17.0"
|
||||
tokio = "1.22.0"
|
||||
sp-core = { version = "7.0.0", path = "../../../../primitives/core" }
|
||||
sp-runtime = { version = "7.0.0", path = "../../../../primitives/runtime" }
|
||||
frame-system = { version = "4.0.0-dev", path = "../../../../frame/system" }
|
||||
|
||||
@@ -30,7 +30,7 @@ sp-runtime = { version = "7.0.0", path = "../../../../primitives/runtime" }
|
||||
|
||||
[dev-dependencies]
|
||||
sc-transaction-pool = { version = "4.0.0-dev", path = "../../../../client/transaction-pool" }
|
||||
tokio = "1.17.0"
|
||||
tokio = "1.22.0"
|
||||
assert_matches = "1.3.0"
|
||||
sp-tracing = { version = "6.0.0", path = "../../../../primitives/tracing" }
|
||||
substrate-test-runtime-client = { version = "2.0.0", path = "../../../../test-utils/runtime/client" }
|
||||
|
||||
@@ -35,7 +35,7 @@ frame-try-runtime = { optional = true, path = "../../../../frame/try-runtime" }
|
||||
substrate-rpc-client = { path = "../../rpc/client" }
|
||||
|
||||
[dev-dependencies]
|
||||
tokio = "1.17.0"
|
||||
tokio = "1.22.0"
|
||||
|
||||
[features]
|
||||
try-runtime = [
|
||||
|
||||
@@ -18,8 +18,8 @@ hyper = { version = "0.14.16", default-features = false, features = ["http1", "s
|
||||
log = "0.4.17"
|
||||
prometheus = { version = "0.13.0", default-features = false }
|
||||
thiserror = "1.0"
|
||||
tokio = { version = "1.17.0", features = ["parking_lot"] }
|
||||
tokio = { version = "1.22.0", features = ["parking_lot"] }
|
||||
|
||||
[dev-dependencies]
|
||||
hyper = { version = "0.14.16", features = ["client"] }
|
||||
tokio = { version = "1.17.0", features = ["rt-multi-thread"] }
|
||||
tokio = { version = "1.22.0", features = ["rt-multi-thread"] }
|
||||
|
||||
Reference in New Issue
Block a user