Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 70598a1

Browse files
authored
Update orchestra to the recent version (#6854)
* Test the recent orchestra changes * Update orchestra and metered-channel
1 parent 3fd9905 commit 70598a1

File tree

8 files changed

+21
-21
lines changed

8 files changed

+21
-21
lines changed

Cargo.lock

Lines changed: 11 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node/core/pvf/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ futures-timer = "3.0.2"
1717
gum = { package = "tracing-gum", path = "../../gum" }
1818
pin-project = "1.0.9"
1919
rand = "0.8.5"
20-
rayon = "1.5.1"
20+
rayon = "1.6.1"
2121
slotmap = "1.0"
2222
tempfile = "3.3.0"
2323
tikv-jemalloc-ctl = { version = "0.5.0", optional = true }

node/metrics/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ futures = "0.3.21"
1010
futures-timer = "3.0.2"
1111
gum = { package = "tracing-gum", path = "../gum" }
1212

13-
metered = { package = "prioritized-metered-channel", version = "0.2.0" }
13+
metered = { package = "prioritized-metered-channel", version = "0.4.0" }
1414

1515
# Both `sc-service` and `sc-cli` are required by runtime metrics `logger_hook()`.
1616
sc-service = { git = "https://github.com/paritytech/substrate", branch = "master" }

node/overseer/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ polkadot-node-primitives = { path = "../primitives" }
1515
polkadot-node-subsystem-types = { path = "../subsystem-types" }
1616
polkadot-node-metrics = { path = "../metrics" }
1717
polkadot-primitives = { path = "../../primitives" }
18-
orchestra = "0.0.4"
18+
orchestra = "0.2.0"
1919
gum = { package = "tracing-gum", path = "../gum" }
2020
lru = "0.9"
2121
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" }
2222
async-trait = "0.1.57"
2323
tikv-jemalloc-ctl = { version = "0.5.0", optional = true }
2424

2525
[dev-dependencies]
26-
metered = { package = "prioritized-metered-channel", version = "0.2.0" }
26+
metered = { package = "prioritized-metered-channel", version = "0.4.0" }
2727

2828
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" }
2929
futures = { version = "0.3.21", features = ["thread-pool"] }

node/overseer/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,8 +661,9 @@ where
661661
);
662662
metrics.memory_stats_snapshot(memory_stats_snapshot);
663663
},
664-
Err(e) =>
665-
gum::debug!(target: LOG_TARGET, "Failed to obtain memory stats: {:?}", e),
664+
Err(e) => {
665+
gum::debug!(target: LOG_TARGET, "Failed to obtain memory stats: {:?}", e)
666+
},
666667
}),
667668
Err(_) => {
668669
gum::debug!(

node/overseer/src/tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,6 +1034,7 @@ fn overseer_all_subsystems_receive_signals_and_messages() {
10341034

10351035
#[test]
10361036
fn context_holds_onto_message_until_enough_signals_received() {
1037+
const CHANNEL_CAPACITY: usize = 1024;
10371038
let (candidate_validation_bounded_tx, _) = metered::channel(CHANNEL_CAPACITY);
10381039
let (candidate_backing_bounded_tx, _) = metered::channel(CHANNEL_CAPACITY);
10391040
let (statement_distribution_bounded_tx, _) = metered::channel(CHANNEL_CAPACITY);

node/subsystem-types/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ polkadot-node-primitives = { path = "../primitives" }
1313
polkadot-node-network-protocol = { path = "../network/protocol" }
1414
polkadot-statement-table = { path = "../../statement-table" }
1515
polkadot-node-jaeger = { path = "../jaeger" }
16-
orchestra = "0.0.4"
16+
orchestra = "0.2.0"
1717
sc-network = { git = "https://github.com/paritytech/substrate", branch = "master" }
1818
sp-api = { git = "https://github.com/paritytech/substrate", branch = "master" }
1919
sp-consensus-babe = { git = "https://github.com/paritytech/substrate", branch = "master" }

node/subsystem-util/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ polkadot-node-network-protocol = { path = "../network/protocol" }
2727
polkadot-primitives = { path = "../../primitives" }
2828
polkadot-node-primitives = { path = "../primitives" }
2929
polkadot-overseer = { path = "../overseer" }
30-
metered = { package = "prioritized-metered-channel", version = "0.2.0" }
30+
metered = { package = "prioritized-metered-channel", version = "0.4.0" }
3131

3232
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" }
3333
sp-application-crypto = { git = "https://github.com/paritytech/substrate", branch = "master" }

0 commit comments

Comments
 (0)