Revert "Update orchestra to the recent version (#6854)" (#6916)

This reverts commit 5565bb9dbc.
This commit is contained in:
Vsevolod Stakhov
2023-03-20 15:08:05 +00:00
committed by GitHub
parent 2e656dcd6e
commit 6d902ce073
8 changed files with 21 additions and 21 deletions
+13 -11
View File
@@ -5067,9 +5067,9 @@ dependencies = [
[[package]] [[package]]
name = "orchestra" name = "orchestra"
version = "0.2.0" version = "0.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ecae97f74ddeb5c6ff00c98ef368423b4ec9a4d5ab48c0d909e84b7594b09718" checksum = "17e7d5b6bb115db09390bed8842c94180893dd83df3dfce7354f2a2aa090a4ee"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"dyn-clonable", "dyn-clonable",
@@ -5084,9 +5084,9 @@ dependencies = [
[[package]] [[package]]
name = "orchestra-proc-macro" name = "orchestra-proc-macro"
version = "0.2.0" version = "0.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08a9846c70b1df02657dbe5b54fadbad0ea3b944623ebf3fcbf7f33ef859dcba" checksum = "c2af4dabb2286b0be0e9711d2d24e25f6217048b71210cffd3daddc3b5c84e1f"
dependencies = [ dependencies = [
"expander 0.0.6", "expander 0.0.6",
"itertools", "itertools",
@@ -8108,11 +8108,10 @@ dependencies = [
[[package]] [[package]]
name = "prioritized-metered-channel" name = "prioritized-metered-channel"
version = "0.4.0" version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a3caef72a78ca8e77cbdfa87dd516ebb79d4cbe5b42e3b8435b463a8261339ff" checksum = "382698e48a268c832d0b181ed438374a6bb708a82a8ca273bb0f61c74cf209c4"
dependencies = [ dependencies = [
"async-channel",
"coarsetime", "coarsetime",
"crossbeam-queue", "crossbeam-queue",
"derive_more", "derive_more",
@@ -8446,23 +8445,26 @@ checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"
[[package]] [[package]]
name = "rayon" name = "rayon"
version = "1.7.0" version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1d2df5196e37bcc87abebc0053e20787d73847bb33134a69841207dd0a47f03b" checksum = "c06aca804d41dbc8ba42dfd964f0d01334eceb64314b9ecf7c5fad5188a06d90"
dependencies = [ dependencies = [
"autocfg",
"crossbeam-deque",
"either", "either",
"rayon-core", "rayon-core",
] ]
[[package]] [[package]]
name = "rayon-core" name = "rayon-core"
version = "1.11.0" version = "1.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4b8f95bd6966f5c87776639160a66bd8ab9895d9d4ab01ddba9fc60661aebe8d" checksum = "d78120e2c850279833f1dd3582f730c4ab53ed95aeaaaa862a2a5c71b1656d8e"
dependencies = [ dependencies = [
"crossbeam-channel", "crossbeam-channel",
"crossbeam-deque", "crossbeam-deque",
"crossbeam-utils", "crossbeam-utils",
"lazy_static",
"num_cpus", "num_cpus",
] ]
+1 -1
View File
@@ -17,7 +17,7 @@ futures-timer = "3.0.2"
gum = { package = "tracing-gum", path = "../../gum" } gum = { package = "tracing-gum", path = "../../gum" }
pin-project = "1.0.9" pin-project = "1.0.9"
rand = "0.8.5" rand = "0.8.5"
rayon = "1.6.1" rayon = "1.5.1"
slotmap = "1.0" slotmap = "1.0"
tempfile = "3.3.0" tempfile = "3.3.0"
tikv-jemalloc-ctl = { version = "0.5.0", optional = true } tikv-jemalloc-ctl = { version = "0.5.0", optional = true }
+1 -1
View File
@@ -10,7 +10,7 @@ futures = "0.3.21"
futures-timer = "3.0.2" futures-timer = "3.0.2"
gum = { package = "tracing-gum", path = "../gum" } gum = { package = "tracing-gum", path = "../gum" }
metered = { package = "prioritized-metered-channel", version = "0.4.0" } metered = { package = "prioritized-metered-channel", version = "0.2.0" }
# Both `sc-service` and `sc-cli` are required by runtime metrics `logger_hook()`. # Both `sc-service` and `sc-cli` are required by runtime metrics `logger_hook()`.
sc-service = { git = "https://github.com/paritytech/substrate", branch = "master" } sc-service = { git = "https://github.com/paritytech/substrate", branch = "master" }
+2 -2
View File
@@ -15,7 +15,7 @@ polkadot-node-primitives = { path = "../primitives" }
polkadot-node-subsystem-types = { path = "../subsystem-types" } polkadot-node-subsystem-types = { path = "../subsystem-types" }
polkadot-node-metrics = { path = "../metrics" } polkadot-node-metrics = { path = "../metrics" }
polkadot-primitives = { path = "../../primitives" } polkadot-primitives = { path = "../../primitives" }
orchestra = "0.2.0" orchestra = "0.0.4"
gum = { package = "tracing-gum", path = "../gum" } gum = { package = "tracing-gum", path = "../gum" }
lru = "0.9" lru = "0.9"
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" } sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" }
@@ -23,7 +23,7 @@ async-trait = "0.1.57"
tikv-jemalloc-ctl = { version = "0.5.0", optional = true } tikv-jemalloc-ctl = { version = "0.5.0", optional = true }
[dev-dependencies] [dev-dependencies]
metered = { package = "prioritized-metered-channel", version = "0.4.0" } metered = { package = "prioritized-metered-channel", version = "0.2.0" }
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" } sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" }
futures = { version = "0.3.21", features = ["thread-pool"] } futures = { version = "0.3.21", features = ["thread-pool"] }
+2 -3
View File
@@ -661,9 +661,8 @@ where
); );
metrics.memory_stats_snapshot(memory_stats_snapshot); metrics.memory_stats_snapshot(memory_stats_snapshot);
}, },
Err(e) => { Err(e) =>
gum::debug!(target: LOG_TARGET, "Failed to obtain memory stats: {:?}", e) gum::debug!(target: LOG_TARGET, "Failed to obtain memory stats: {:?}", e),
},
}), }),
Err(_) => { Err(_) => {
gum::debug!( gum::debug!(
-1
View File
@@ -1034,7 +1034,6 @@ fn overseer_all_subsystems_receive_signals_and_messages() {
#[test] #[test]
fn context_holds_onto_message_until_enough_signals_received() { 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_validation_bounded_tx, _) = metered::channel(CHANNEL_CAPACITY);
let (candidate_backing_bounded_tx, _) = metered::channel(CHANNEL_CAPACITY); let (candidate_backing_bounded_tx, _) = metered::channel(CHANNEL_CAPACITY);
let (statement_distribution_bounded_tx, _) = metered::channel(CHANNEL_CAPACITY); let (statement_distribution_bounded_tx, _) = metered::channel(CHANNEL_CAPACITY);
+1 -1
View File
@@ -13,7 +13,7 @@ polkadot-node-primitives = { path = "../primitives" }
polkadot-node-network-protocol = { path = "../network/protocol" } polkadot-node-network-protocol = { path = "../network/protocol" }
polkadot-statement-table = { path = "../../statement-table" } polkadot-statement-table = { path = "../../statement-table" }
polkadot-node-jaeger = { path = "../jaeger" } polkadot-node-jaeger = { path = "../jaeger" }
orchestra = "0.2.0" orchestra = "0.0.4"
sc-network = { git = "https://github.com/paritytech/substrate", branch = "master" } sc-network = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-api = { git = "https://github.com/paritytech/substrate", branch = "master" } sp-api = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-consensus-babe = { git = "https://github.com/paritytech/substrate", branch = "master" } sp-consensus-babe = { git = "https://github.com/paritytech/substrate", branch = "master" }
+1 -1
View File
@@ -27,7 +27,7 @@ polkadot-node-network-protocol = { path = "../network/protocol" }
polkadot-primitives = { path = "../../primitives" } polkadot-primitives = { path = "../../primitives" }
polkadot-node-primitives = { path = "../primitives" } polkadot-node-primitives = { path = "../primitives" }
polkadot-overseer = { path = "../overseer" } polkadot-overseer = { path = "../overseer" }
metered = { package = "prioritized-metered-channel", version = "0.4.0" } metered = { package = "prioritized-metered-channel", version = "0.2.0" }
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" } sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-application-crypto = { git = "https://github.com/paritytech/substrate", branch = "master" } sp-application-crypto = { git = "https://github.com/paritytech/substrate", branch = "master" }