From 911512ae77e2a2c95467cebd241830ff70926719 Mon Sep 17 00:00:00 2001 From: Svyatoslav Nikolsky Date: Wed, 23 Aug 2023 12:51:24 +0300 Subject: [PATCH] Manually update deps in polkadot staging (#2371) * Bump clap from 4.3.19 to 4.3.21 Bumps [clap](https://github.com/clap-rs/clap) from 4.3.19 to 4.3.21. - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/v4.3.19...v4.3.21) --- updated-dependencies: - dependency-name: clap dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * Bump tokio from 1.29.1 to 1.31.0 Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.29.1 to 1.31.0. - [Release notes](https://github.com/tokio-rs/tokio/releases) - [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.29.1...tokio-1.31.0) --- updated-dependencies: - dependency-name: tokio dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Bump sysinfo from 0.29.7 to 0.29.8 Bumps [sysinfo](https://github.com/GuillaumeGomez/sysinfo) from 0.29.7 to 0.29.8. - [Changelog](https://github.com/GuillaumeGomez/sysinfo/blob/master/CHANGELOG.md) - [Commits](https://github.com/GuillaumeGomez/sysinfo/commits) --- updated-dependencies: - dependency-name: sysinfo dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * Bump async-trait from 0.1.72 to 0.1.73 Bumps [async-trait](https://github.com/dtolnay/async-trait) from 0.1.72 to 0.1.73. - [Release notes](https://github.com/dtolnay/async-trait/releases) - [Commits](https://github.com/dtolnay/async-trait/compare/0.1.72...0.1.73) --- updated-dependencies: - dependency-name: async-trait dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * Bump log from 0.4.19 to 0.4.20 Bumps [log](https://github.com/rust-lang/log) from 0.4.19 to 0.4.20. - [Release notes](https://github.com/rust-lang/log/releases) - [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/log/compare/0.4.19...0.4.20) --- updated-dependencies: - dependency-name: log dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * Bump anyhow from 1.0.72 to 1.0.75 Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.72 to 1.0.75. - [Release notes](https://github.com/dtolnay/anyhow/releases) - [Commits](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.75) --- updated-dependencies: - dependency-name: anyhow dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * Bump tempfile from 3.7.1 to 3.8.0 Bumps [tempfile](https://github.com/Stebalien/tempfile) from 3.7.1 to 3.8.0. - [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md) - [Commits](https://github.com/Stebalien/tempfile/compare/v3.7.1...v3.8.0) --- updated-dependencies: - dependency-name: tempfile dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Bump clap from 4.3.21 to 4.3.23 Bumps [clap](https://github.com/clap-rs/clap) from 4.3.21 to 4.3.23. - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/v4.3.21...v4.3.23) --- updated-dependencies: - dependency-name: clap dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * Bump tokio from 1.31.0 to 1.32.0 Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.31.0 to 1.32.0. - [Release notes](https://github.com/tokio-rs/tokio/releases) - [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.31.0...tokio-1.32.0) --- updated-dependencies: - dependency-name: tokio dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Bump serde_json from 1.0.104 to 1.0.105 Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.104 to 1.0.105. - [Release notes](https://github.com/serde-rs/json/releases) - [Commits](https://github.com/serde-rs/json/compare/v1.0.104...v1.0.105) --- updated-dependencies: - dependency-name: serde_json dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * Bump thiserror from 1.0.44 to 1.0.47 Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.44 to 1.0.47. - [Release notes](https://github.com/dtolnay/thiserror/releases) - [Commits](https://github.com/dtolnay/thiserror/compare/1.0.44...1.0.47) --- updated-dependencies: - dependency-name: thiserror dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * Bump rustls-webpki from 0.101.1 to 0.101.4 Bumps [rustls-webpki](https://github.com/rustls/webpki) from 0.101.1 to 0.101.4. - [Release notes](https://github.com/rustls/webpki/releases) - [Commits](https://github.com/rustls/webpki/compare/v/0.101.1...v/0.101.4) --- updated-dependencies: - dependency-name: rustls-webpki dependency-type: indirect ... Signed-off-by: dependabot[bot] * Bump rustls-webpki from 0.100.1 to 0.100.2 in /tools/runtime-codegen Bumps [rustls-webpki](https://github.com/rustls/webpki) from 0.100.1 to 0.100.2. - [Release notes](https://github.com/rustls/webpki/releases) - [Commits](https://github.com/rustls/webpki/compare/v/0.100.1...v/0.100.2) --- updated-dependencies: - dependency-name: rustls-webpki dependency-type: indirect ... Signed-off-by: dependabot[bot] * fix clippy (#2335) * fix clippy * fix clippy issues --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- bridges/bin/millau/node/Cargo.toml | 4 ++-- bridges/bin/rialto-parachain/node/Cargo.toml | 4 ++-- bridges/bin/rialto/node/Cargo.toml | 4 ++-- bridges/bin/runtime-common/Cargo.toml | 2 +- bridges/modules/beefy/Cargo.toml | 2 +- bridges/modules/grandpa/Cargo.toml | 2 +- bridges/modules/messages/Cargo.toml | 2 +- bridges/modules/parachains/Cargo.toml | 2 +- bridges/modules/relayers/Cargo.toml | 2 +- bridges/modules/xcm-bridge-hub-router/Cargo.toml | 2 +- bridges/relays/bin-substrate/Cargo.toml | 4 ++-- .../src/bridges/rialto_millau/millau_headers_to_rialto.rs | 2 +- .../src/bridges/rialto_millau/rialto_headers_to_millau.rs | 2 +- .../millau_headers_to_rialto_parachain.rs | 2 +- .../rialto_parachains_to_millau.rs | 2 +- .../bridges/westend_millau/westend_headers_to_millau.rs | 2 +- .../westend_millau/westend_parachains_to_millau.rs | 2 +- .../src/cli/relay_headers_and_messages/mod.rs | 4 ++-- bridges/relays/client-substrate/Cargo.toml | 6 +++--- bridges/relays/lib-substrate-relay/Cargo.toml | 4 ++-- .../relays/lib-substrate-relay/src/messages_metrics.rs | 2 +- bridges/relays/messages/Cargo.toml | 2 +- bridges/relays/messages/src/message_race_loop.rs | 8 ++------ bridges/relays/parachains/Cargo.toml | 4 ++-- bridges/relays/utils/Cargo.toml | 6 +++--- 25 files changed, 37 insertions(+), 41 deletions(-) diff --git a/bridges/bin/millau/node/Cargo.toml b/bridges/bin/millau/node/Cargo.toml index a0a0e4ffbd1e0..d551694422ace 100644 --- a/bridges/bin/millau/node/Cargo.toml +++ b/bridges/bin/millau/node/Cargo.toml @@ -9,10 +9,10 @@ repository = "https://github.com/paritytech/parity-bridges-common/" license = "GPL-3.0-or-later WITH Classpath-exception-2.0" [dependencies] -clap = { version = "4.3.12", features = ["derive"] } +clap = { version = "4.3.23", features = ["derive"] } futures = "0.3.28" jsonrpsee = { version = "0.16.2", features = ["server"] } -serde_json = "1.0.96" +serde_json = "1.0.105" # Bridge dependencies diff --git a/bridges/bin/rialto-parachain/node/Cargo.toml b/bridges/bin/rialto-parachain/node/Cargo.toml index 7dc89a0111c95..537098bbd6e61 100644 --- a/bridges/bin/rialto-parachain/node/Cargo.toml +++ b/bridges/bin/rialto-parachain/node/Cargo.toml @@ -17,8 +17,8 @@ default = [] runtime-benchmarks = ['rialto-parachain-runtime/runtime-benchmarks'] [dependencies] -clap = { version = "4.2.7", features = ["derive"] } -log = '0.4.17' +clap = { version = "4.3.23", features = ["derive"] } +log = '0.4.20' codec = { package = 'parity-scale-codec', version = '3.1.5' } serde = { version = '1.0', features = ['derive'] } diff --git a/bridges/bin/rialto/node/Cargo.toml b/bridges/bin/rialto/node/Cargo.toml index 7f28a15426322..aa3824e4d51de 100644 --- a/bridges/bin/rialto/node/Cargo.toml +++ b/bridges/bin/rialto/node/Cargo.toml @@ -9,8 +9,8 @@ repository = "https://github.com/paritytech/parity-bridges-common/" license = "GPL-3.0-or-later WITH Classpath-exception-2.0" [dependencies] -clap = { version = "4.2.7", features = ["derive"] } -serde_json = "1.0.96" +clap = { version = "4.3.23", features = ["derive"] } +serde_json = "1.0.105" # Bridge dependencies diff --git a/bridges/bin/runtime-common/Cargo.toml b/bridges/bin/runtime-common/Cargo.toml index 9ca6a4c5df98c..5fb75f3887f11 100644 --- a/bridges/bin/runtime-common/Cargo.toml +++ b/bridges/bin/runtime-common/Cargo.toml @@ -9,7 +9,7 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0" [dependencies] codec = { package = "parity-scale-codec", version = "3.1.5", default-features = false, features = ["derive"] } hash-db = { version = "0.16.0", default-features = false } -log = { version = "0.4.19", default-features = false } +log = { version = "0.4.20", default-features = false } scale-info = { version = "2.9.0", default-features = false, features = ["derive"] } static_assertions = { version = "1.1", optional = true } diff --git a/bridges/modules/beefy/Cargo.toml b/bridges/modules/beefy/Cargo.toml index 421f11ddc8979..202d30b170579 100644 --- a/bridges/modules/beefy/Cargo.toml +++ b/bridges/modules/beefy/Cargo.toml @@ -7,7 +7,7 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0" [dependencies] codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false } -log = { version = "0.4.19", default-features = false } +log = { version = "0.4.20", default-features = false } scale-info = { version = "2.9.0", default-features = false, features = ["derive"] } serde = { version = "1.0", optional = true } diff --git a/bridges/modules/grandpa/Cargo.toml b/bridges/modules/grandpa/Cargo.toml index d04c60729790e..0bd62beeaad48 100644 --- a/bridges/modules/grandpa/Cargo.toml +++ b/bridges/modules/grandpa/Cargo.toml @@ -10,7 +10,7 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0" [dependencies] codec = { package = "parity-scale-codec", version = "3.1.5", default-features = false } finality-grandpa = { version = "0.16.2", default-features = false } -log = { version = "0.4.19", default-features = false } +log = { version = "0.4.20", default-features = false } scale-info = { version = "2.9.0", default-features = false, features = ["derive"] } # Bridge Dependencies diff --git a/bridges/modules/messages/Cargo.toml b/bridges/modules/messages/Cargo.toml index da69f66d53868..8db52acefc0b4 100644 --- a/bridges/modules/messages/Cargo.toml +++ b/bridges/modules/messages/Cargo.toml @@ -8,7 +8,7 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0" [dependencies] codec = { package = "parity-scale-codec", version = "3.1.5", default-features = false } -log = { version = "0.4.19", default-features = false } +log = { version = "0.4.20", default-features = false } num-traits = { version = "0.2", default-features = false } scale-info = { version = "2.9.0", default-features = false, features = ["derive"] } diff --git a/bridges/modules/parachains/Cargo.toml b/bridges/modules/parachains/Cargo.toml index f7e2184a261d2..3e8d00511d533 100644 --- a/bridges/modules/parachains/Cargo.toml +++ b/bridges/modules/parachains/Cargo.toml @@ -7,7 +7,7 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0" [dependencies] codec = { package = "parity-scale-codec", version = "3.1.5", default-features = false } -log = { version = "0.4.19", default-features = false } +log = { version = "0.4.20", default-features = false } scale-info = { version = "2.9.0", default-features = false, features = ["derive"] } # Bridge Dependencies diff --git a/bridges/modules/relayers/Cargo.toml b/bridges/modules/relayers/Cargo.toml index ef41d70a242f2..93b0917970608 100644 --- a/bridges/modules/relayers/Cargo.toml +++ b/bridges/modules/relayers/Cargo.toml @@ -8,7 +8,7 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0" [dependencies] codec = { package = "parity-scale-codec", version = "3.1.5", default-features = false } -log = { version = "0.4.19", default-features = false } +log = { version = "0.4.20", default-features = false } scale-info = { version = "2.9.0", default-features = false, features = ["derive"] } # Bridge dependencies diff --git a/bridges/modules/xcm-bridge-hub-router/Cargo.toml b/bridges/modules/xcm-bridge-hub-router/Cargo.toml index 3d13e7cc3d7f2..8a6bcef060480 100644 --- a/bridges/modules/xcm-bridge-hub-router/Cargo.toml +++ b/bridges/modules/xcm-bridge-hub-router/Cargo.toml @@ -8,7 +8,7 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0" [dependencies] codec = { package = "parity-scale-codec", version = "3.1.5", default-features = false } -log = { version = "0.4.19", default-features = false } +log = { version = "0.4.20", default-features = false } scale-info = { version = "2.8.0", default-features = false, features = ["bit-vec", "derive", "serde"] } # Bridge dependencies diff --git a/bridges/relays/bin-substrate/Cargo.toml b/bridges/relays/bin-substrate/Cargo.toml index f71920a1d182e..6e95895983098 100644 --- a/bridges/relays/bin-substrate/Cargo.toml +++ b/bridges/relays/bin-substrate/Cargo.toml @@ -12,7 +12,7 @@ async-trait = "0.1" codec = { package = "parity-scale-codec", version = "3.1.5" } futures = "0.3.28" hex = "0.4" -log = "0.4.17" +log = "0.4.20" num-format = "0.4" num-traits = "0.2" rbtag = "0.3" @@ -72,5 +72,5 @@ xcm-executor = { git = "https://github.com/paritytech/polkadot", branch = "maste bp-test-utils = { path = "../../primitives/test-utils" } hex-literal = "0.4" sp-keyring = { git = "https://github.com/paritytech/substrate", branch = "master" } -tempfile = "3.5" +tempfile = "3.8" finality-grandpa = { version = "0.16.2" } diff --git a/bridges/relays/bin-substrate/src/bridges/rialto_millau/millau_headers_to_rialto.rs b/bridges/relays/bin-substrate/src/bridges/rialto_millau/millau_headers_to_rialto.rs index 490ded1f67cb9..2e2452eb31b8c 100644 --- a/bridges/relays/bin-substrate/src/bridges/rialto_millau/millau_headers_to_rialto.rs +++ b/bridges/relays/bin-substrate/src/bridges/rialto_millau/millau_headers_to_rialto.rs @@ -41,7 +41,7 @@ impl SubstrateFinalitySyncPipeline for MillauFinalityToRialto { >; } -//// `Millau` to `Rialto` bridge definition. +/// `Millau` to `Rialto` bridge definition. pub struct MillauToRialtoCliBridge {} impl CliBridgeBase for MillauToRialtoCliBridge { diff --git a/bridges/relays/bin-substrate/src/bridges/rialto_millau/rialto_headers_to_millau.rs b/bridges/relays/bin-substrate/src/bridges/rialto_millau/rialto_headers_to_millau.rs index c6ac05011f301..c855aa66c2983 100644 --- a/bridges/relays/bin-substrate/src/bridges/rialto_millau/rialto_headers_to_millau.rs +++ b/bridges/relays/bin-substrate/src/bridges/rialto_millau/rialto_headers_to_millau.rs @@ -41,7 +41,7 @@ impl SubstrateFinalitySyncPipeline for RialtoFinalityToMillau { >; } -//// `Rialto` to `Millau` bridge definition. +/// `Rialto` to `Millau` bridge definition. pub struct RialtoToMillauCliBridge {} impl CliBridgeBase for RialtoToMillauCliBridge { diff --git a/bridges/relays/bin-substrate/src/bridges/rialto_parachain_millau/millau_headers_to_rialto_parachain.rs b/bridges/relays/bin-substrate/src/bridges/rialto_parachain_millau/millau_headers_to_rialto_parachain.rs index 79d3bde22fa75..fd7559843022d 100644 --- a/bridges/relays/bin-substrate/src/bridges/rialto_parachain_millau/millau_headers_to_rialto_parachain.rs +++ b/bridges/relays/bin-substrate/src/bridges/rialto_parachain_millau/millau_headers_to_rialto_parachain.rs @@ -62,7 +62,7 @@ impl SubstrateFinalitySyncPipeline for MillauFinalityToRialtoParachain { type SubmitFinalityProofCallBuilder = MillauFinalityToRialtoParachainCallBuilder; } -//// `Millau` to `RialtoParachain` bridge definition. +/// `Millau` to `RialtoParachain` bridge definition. pub struct MillauToRialtoParachainCliBridge {} impl CliBridgeBase for MillauToRialtoParachainCliBridge { diff --git a/bridges/relays/bin-substrate/src/bridges/rialto_parachain_millau/rialto_parachains_to_millau.rs b/bridges/relays/bin-substrate/src/bridges/rialto_parachain_millau/rialto_parachains_to_millau.rs index 04f2b5aa7c745..6b2a1332144dc 100644 --- a/bridges/relays/bin-substrate/src/bridges/rialto_parachain_millau/rialto_parachains_to_millau.rs +++ b/bridges/relays/bin-substrate/src/bridges/rialto_parachain_millau/rialto_parachains_to_millau.rs @@ -44,7 +44,7 @@ pub type RialtoParachainsToMillauSubmitParachainHeadsCallBuilder = millau_runtime::WithRialtoParachainsInstance, >; -//// `RialtoParachain` to `Millau` bridge definition. +/// `RialtoParachain` to `Millau` bridge definition. pub struct RialtoParachainToMillauCliBridge {} impl CliBridgeBase for RialtoParachainToMillauCliBridge { diff --git a/bridges/relays/bin-substrate/src/bridges/westend_millau/westend_headers_to_millau.rs b/bridges/relays/bin-substrate/src/bridges/westend_millau/westend_headers_to_millau.rs index eadbc3057045a..afbbd064d1fe0 100644 --- a/bridges/relays/bin-substrate/src/bridges/westend_millau/westend_headers_to_millau.rs +++ b/bridges/relays/bin-substrate/src/bridges/westend_millau/westend_headers_to_millau.rs @@ -41,7 +41,7 @@ impl SubstrateFinalitySyncPipeline for WestendFinalityToMillau { >; } -//// `Westend` to `Millau` bridge definition. +/// `Westend` to `Millau` bridge definition. pub struct WestendToMillauCliBridge {} impl CliBridgeBase for WestendToMillauCliBridge { diff --git a/bridges/relays/bin-substrate/src/bridges/westend_millau/westend_parachains_to_millau.rs b/bridges/relays/bin-substrate/src/bridges/westend_millau/westend_parachains_to_millau.rs index 78164eb17e449..a3d5ba08df503 100644 --- a/bridges/relays/bin-substrate/src/bridges/westend_millau/westend_parachains_to_millau.rs +++ b/bridges/relays/bin-substrate/src/bridges/westend_millau/westend_parachains_to_millau.rs @@ -43,7 +43,7 @@ pub type WestendParachainsToMillauSubmitParachainHeadsCallBuilder = millau_runtime::WithWestendParachainsInstance, >; -//// `WestendParachain` to `Millau` bridge definition. +/// `WestendParachain` to `Millau` bridge definition. pub struct AssetHubWestendToMillauCliBridge {} impl ParachainToRelayHeadersCliBridge for AssetHubWestendToMillauCliBridge { diff --git a/bridges/relays/bin-substrate/src/cli/relay_headers_and_messages/mod.rs b/bridges/relays/bin-substrate/src/cli/relay_headers_and_messages/mod.rs index a47283400aab0..21b352aff6ef6 100644 --- a/bridges/relays/bin-substrate/src/cli/relay_headers_and_messages/mod.rs +++ b/bridges/relays/bin-substrate/src/cli/relay_headers_and_messages/mod.rs @@ -355,14 +355,14 @@ where let common = self.mut_base().mut_common(); substrate_relay_helper::messages_metrics::add_relay_balances_metrics::<_, Self::Right>( common.left.client.clone(), - &mut common.metrics_params, + &common.metrics_params, &common.left.accounts, &lanes, ) .await?; substrate_relay_helper::messages_metrics::add_relay_balances_metrics::<_, Self::Left>( common.right.client.clone(), - &mut common.metrics_params, + &common.metrics_params, &common.right.accounts, &lanes, ) diff --git a/bridges/relays/client-substrate/Cargo.toml b/bridges/relays/client-substrate/Cargo.toml index 359f049d9dbd0..e0c1a5461f971 100644 --- a/bridges/relays/client-substrate/Cargo.toml +++ b/bridges/relays/client-substrate/Cargo.toml @@ -11,12 +11,12 @@ async-trait = "0.1" codec = { package = "parity-scale-codec", version = "3.1.5" } futures = "0.3.28" jsonrpsee = { version = "0.17", features = ["macros", "ws-client"] } -log = "0.4.17" +log = "0.4.20" num-traits = "0.2" rand = "0.8" scale-info = { version = "2.9.0", features = ["derive"] } -tokio = { version = "1.28", features = ["rt-multi-thread"] } -thiserror = "1.0.40" +tokio = { version = "1.32", features = ["rt-multi-thread"] } +thiserror = "1.0.47" # Bridge dependencies diff --git a/bridges/relays/lib-substrate-relay/Cargo.toml b/bridges/relays/lib-substrate-relay/Cargo.toml index 72e97dbe69ac6..8fe86bfb06a08 100644 --- a/bridges/relays/lib-substrate-relay/Cargo.toml +++ b/bridges/relays/lib-substrate-relay/Cargo.toml @@ -7,14 +7,14 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0" [dependencies] anyhow = "1.0" -thiserror = "1.0.40" +thiserror = "1.0.47" async-std = "1.9.0" async-trait = "0.1" codec = { package = "parity-scale-codec", version = "3.1.5" } futures = "0.3.28" hex = "0.4" num-traits = "0.2" -log = "0.4.17" +log = "0.4.20" # Bridge dependencies diff --git a/bridges/relays/lib-substrate-relay/src/messages_metrics.rs b/bridges/relays/lib-substrate-relay/src/messages_metrics.rs index 50972dfc49cb6..27bf6186c3ba0 100644 --- a/bridges/relays/lib-substrate-relay/src/messages_metrics.rs +++ b/bridges/relays/lib-substrate-relay/src/messages_metrics.rs @@ -37,7 +37,7 @@ use std::{convert::TryFrom, fmt::Debug, marker::PhantomData}; /// Add relay accounts balance metrics. pub async fn add_relay_balances_metrics( client: Client, - metrics: &mut MetricsParams, + metrics: &MetricsParams, relay_accounts: &Vec>>, lanes: &[LaneId], ) -> anyhow::Result<()> diff --git a/bridges/relays/messages/Cargo.toml b/bridges/relays/messages/Cargo.toml index a45b272810537..4d84f220a3a6d 100644 --- a/bridges/relays/messages/Cargo.toml +++ b/bridges/relays/messages/Cargo.toml @@ -11,7 +11,7 @@ async-trait = "0.1" env_logger = "0.10" futures = "0.3.28" hex = "0.4" -log = "0.4.17" +log = "0.4.20" num-traits = "0.2" parking_lot = "0.12.1" diff --git a/bridges/relays/messages/src/message_race_loop.rs b/bridges/relays/messages/src/message_race_loop.rs index 3df9eef496016..f28be78842fc1 100644 --- a/bridges/relays/messages/src/message_race_loop.rs +++ b/bridges/relays/messages/src/message_race_loop.rs @@ -664,7 +664,7 @@ pub async fn run, TC: TargetClient

>( }) .fuse(), ); - } else if source_nonces_required && best_at_source.is_some() { + } else if let (true, Some(best_at_source)) = (source_nonces_required, best_at_source) { log::debug!(target: "bridge", "Asking {} about message nonces", P::source_name()); let at_block = race_state .best_finalized_source_header_id_at_source @@ -674,11 +674,7 @@ pub async fn run, TC: TargetClient

>( best_finalized_source_header_id_at_source is Some; qed", ) .clone(); - source_nonces.set( - race_source - .nonces(at_block, best_at_source.expect("guaranteed by if condition; qed")) - .fuse(), - ); + source_nonces.set(race_source.nonces(at_block, best_at_source).fuse()); } else { source_client_is_online = true; } diff --git a/bridges/relays/parachains/Cargo.toml b/bridges/relays/parachains/Cargo.toml index 0cecf063922f9..75fec34b425f2 100644 --- a/bridges/relays/parachains/Cargo.toml +++ b/bridges/relays/parachains/Cargo.toml @@ -7,9 +7,9 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0" [dependencies] async-std = "1.6.5" -async-trait = "0.1.68" +async-trait = "0.1.73" futures = "0.3.28" -log = "0.4.17" +log = "0.4.20" relay-utils = { path = "../utils" } # Bridge dependencies diff --git a/bridges/relays/utils/Cargo.toml b/bridges/relays/utils/Cargo.toml index 65e268a07707e..5aa1a4e6bb224 100644 --- a/bridges/relays/utils/Cargo.toml +++ b/bridges/relays/utils/Cargo.toml @@ -15,13 +15,13 @@ isahc = "1.2" env_logger = "0.10.0" futures = "0.3.28" jsonpath_lib = "0.3" -log = "0.4.17" +log = "0.4.20" num-traits = "0.2" serde_json = "1.0" sysinfo = "0.29" time = { version = "0.3", features = ["formatting", "local-offset", "std"] } -tokio = { version = "1.28", features = ["rt"] } -thiserror = "1.0.40" +tokio = { version = "1.32", features = ["rt"] } +thiserror = "1.0.47" # Bridge dependencies