diff --git a/Cargo.lock b/Cargo.lock index 16d6f65a211b..1759dccbe5e7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8516,10 +8516,11 @@ dependencies = [ [[package]] name = "prioritized-metered-channel" -version = "0.2.0" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "382698e48a268c832d0b181ed438374a6bb708a82a8ca273bb0f61c74cf209c4" +checksum = "a3caef72a78ca8e77cbdfa87dd516ebb79d4cbe5b42e3b8435b463a8261339ff" dependencies = [ + "async-channel", "coarsetime", "crossbeam-queue", "derive_more", diff --git a/node/core/pvf/Cargo.toml b/node/core/pvf/Cargo.toml index 691334514eeb..ab18118bce7d 100644 --- a/node/core/pvf/Cargo.toml +++ b/node/core/pvf/Cargo.toml @@ -18,7 +18,7 @@ gum = { package = "tracing-gum", path = "../../gum" } libc = "0.2.139" pin-project = "1.0.9" rand = "0.8.5" -rayon = "1.5.1" +rayon = "1.6.1" slotmap = "1.0" tempfile = "3.3.0" tikv-jemalloc-ctl = { version = "0.5.0", optional = true } diff --git a/node/metrics/Cargo.toml b/node/metrics/Cargo.toml index ebd5fb084f1f..827b18a66b99 100644 --- a/node/metrics/Cargo.toml +++ b/node/metrics/Cargo.toml @@ -10,7 +10,7 @@ futures = "0.3.21" futures-timer = "3.0.2" gum = { package = "tracing-gum", path = "../gum" } -metered = { package = "prioritized-metered-channel", version = "0.2.0" } +metered = { package = "prioritized-metered-channel", version = "0.4.0" } # Both `sc-service` and `sc-cli` are required by runtime metrics `logger_hook()`. sc-service = { git = "https://github.com/paritytech/substrate", branch = "sync-evict-idle-peers" } diff --git a/node/overseer/Cargo.toml b/node/overseer/Cargo.toml index 0bba313b41d7..30913c08fdf9 100644 --- a/node/overseer/Cargo.toml +++ b/node/overseer/Cargo.toml @@ -15,7 +15,7 @@ polkadot-node-primitives = { path = "../primitives" } polkadot-node-subsystem-types = { path = "../subsystem-types" } polkadot-node-metrics = { path = "../metrics" } polkadot-primitives = { path = "../../primitives" } -orchestra = "0.0.5" +orchestra = "0.2.0" gum = { package = "tracing-gum", path = "../gum" } lru = "0.9" sp-core = { git = "https://github.com/paritytech/substrate", branch = "sync-evict-idle-peers" } @@ -23,7 +23,7 @@ async-trait = "0.1.57" tikv-jemalloc-ctl = { version = "0.5.0", optional = true } [dev-dependencies] -metered = { package = "prioritized-metered-channel", version = "0.2.0" } +metered = { package = "prioritized-metered-channel", version = "0.4.0" } sp-core = { git = "https://github.com/paritytech/substrate", branch = "sync-evict-idle-peers" } futures = { version = "0.3.21", features = ["thread-pool"] } diff --git a/node/overseer/src/lib.rs b/node/overseer/src/lib.rs index a2d553779fdc..a3d0d523023e 100644 --- a/node/overseer/src/lib.rs +++ b/node/overseer/src/lib.rs @@ -661,8 +661,9 @@ where ); metrics.memory_stats_snapshot(memory_stats_snapshot); }, - Err(e) => - gum::debug!(target: LOG_TARGET, "Failed to obtain memory stats: {:?}", e), + Err(e) => { + gum::debug!(target: LOG_TARGET, "Failed to obtain memory stats: {:?}", e) + }, }), Err(_) => { gum::debug!( diff --git a/node/overseer/src/tests.rs b/node/overseer/src/tests.rs index 35efa4e1bd6f..34e9e7ca4e95 100644 --- a/node/overseer/src/tests.rs +++ b/node/overseer/src/tests.rs @@ -1034,6 +1034,7 @@ fn overseer_all_subsystems_receive_signals_and_messages() { #[test] fn context_holds_onto_message_until_enough_signals_received() { + const CHANNEL_CAPACITY: usize = 1024; let (candidate_validation_bounded_tx, _) = metered::channel(CHANNEL_CAPACITY); let (candidate_backing_bounded_tx, _) = metered::channel(CHANNEL_CAPACITY); let (statement_distribution_bounded_tx, _) = metered::channel(CHANNEL_CAPACITY); diff --git a/node/subsystem-types/Cargo.toml b/node/subsystem-types/Cargo.toml index 4ada233ba62c..4229e4916b1e 100644 --- a/node/subsystem-types/Cargo.toml +++ b/node/subsystem-types/Cargo.toml @@ -13,7 +13,6 @@ polkadot-node-primitives = { path = "../primitives" } polkadot-node-network-protocol = { path = "../network/protocol" } polkadot-statement-table = { path = "../../statement-table" } polkadot-node-jaeger = { path = "../jaeger" } -orchestra = "0.0.5" sc-network = { git = "https://github.com/paritytech/substrate", branch = "sync-evict-idle-peers" } sp-api = { git = "https://github.com/paritytech/substrate", branch = "sync-evict-idle-peers" } sp-consensus-babe = { git = "https://github.com/paritytech/substrate", branch = "sync-evict-idle-peers" } diff --git a/node/subsystem-util/Cargo.toml b/node/subsystem-util/Cargo.toml index a57eb0a260a0..8c409dccb7c6 100644 --- a/node/subsystem-util/Cargo.toml +++ b/node/subsystem-util/Cargo.toml @@ -27,7 +27,7 @@ polkadot-node-network-protocol = { path = "../network/protocol" } polkadot-primitives = { path = "../../primitives" } polkadot-node-primitives = { path = "../primitives" } polkadot-overseer = { path = "../overseer" } -metered = { package = "prioritized-metered-channel", version = "0.2.0" } +metered = { package = "prioritized-metered-channel", version = "0.4.0" } sp-core = { git = "https://github.com/paritytech/substrate", branch = "sync-evict-idle-peers" } sp-application-crypto = { git = "https://github.com/paritytech/substrate", branch = "sync-evict-idle-peers" }