diff --git a/bridges/relays/clients/ethereum/Cargo.toml b/bridges/relays/clients/ethereum/Cargo.toml index b73a66a44c0e1..e0e1a778c7449 100644 --- a/bridges/relays/clients/ethereum/Cargo.toml +++ b/bridges/relays/clients/ethereum/Cargo.toml @@ -10,9 +10,9 @@ bp-eth-poa = { path = "../../../primitives/ethereum-poa" } codec = { package = "parity-scale-codec", version = "2.0.0" } headers-relay = { path = "../../generic/headers" } hex-literal = "0.3" -jsonrpsee-proc-macros = "0.2.0-alpha" -jsonrpsee-types = "0.2.0-alpha" -jsonrpsee-ws-client = "0.2.0-alpha" +jsonrpsee-proc-macros = "0.2.0-alpha.2" +jsonrpsee-types = "0.2.0-alpha.2" +jsonrpsee-ws-client = "0.2.0-alpha.2" libsecp256k1 = { version = "0.3.4", default-features = false, features = ["hmac"] } log = "0.4.11" relay-utils = { path = "../../generic/utils" } diff --git a/bridges/relays/clients/ethereum/src/rpc.rs b/bridges/relays/clients/ethereum/src/rpc.rs index 26cc3a6d969e0..9826d92e0ceb8 100644 --- a/bridges/relays/clients/ethereum/src/rpc.rs +++ b/bridges/relays/clients/ethereum/src/rpc.rs @@ -16,11 +16,6 @@ //! Ethereum node RPC interface. -// The compiler doesn't think we're using the -// code from rpc_api! -#![allow(dead_code)] -#![allow(unused_variables)] - use crate::types::{ Address, Bytes, CallRequest, Header, HeaderWithTransactions, Receipt, SyncState, Transaction, TransactionHash, H256, U256, U64, diff --git a/bridges/relays/clients/substrate/Cargo.toml b/bridges/relays/clients/substrate/Cargo.toml index bd73043e0a50d..13eb51c8f5b4e 100644 --- a/bridges/relays/clients/substrate/Cargo.toml +++ b/bridges/relays/clients/substrate/Cargo.toml @@ -9,9 +9,9 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0" async-std = "1.6.5" async-trait = "0.1.40" codec = { package = "parity-scale-codec", version = "2.0.0" } -jsonrpsee-proc-macros = "0.2.0-alpha" -jsonrpsee-types = "0.2.0-alpha" -jsonrpsee-ws-client = "0.2.0-alpha" +jsonrpsee-proc-macros = "0.2.0-alpha.2" +jsonrpsee-types = "0.2.0-alpha.2" +jsonrpsee-ws-client = "0.2.0-alpha.2" log = "0.4.11" num-traits = "0.2" rand = "0.7" diff --git a/bridges/relays/clients/substrate/src/client.rs b/bridges/relays/clients/substrate/src/client.rs index ec18e9ba23d5e..8332813042896 100644 --- a/bridges/relays/clients/substrate/src/client.rs +++ b/bridges/relays/clients/substrate/src/client.rs @@ -102,7 +102,7 @@ impl Client { params.port, ); let mut config = RpcConfig::with_url(&uri); - config.max_subscription_capacity = MAX_SUBSCRIPTION_CAPACITY; + config.max_notifs_per_subscription = MAX_SUBSCRIPTION_CAPACITY; let client = RpcClient::new(config).await?; Ok(client) } diff --git a/bridges/relays/clients/substrate/src/rpc.rs b/bridges/relays/clients/substrate/src/rpc.rs index d768912a2f1a5..98b95750028cd 100644 --- a/bridges/relays/clients/substrate/src/rpc.rs +++ b/bridges/relays/clients/substrate/src/rpc.rs @@ -16,11 +16,6 @@ //! The most generic Substrate node RPC interface. -// The compiler doesn't think we're using the -// code from rpc_api! -#![allow(dead_code)] -#![allow(unused_variables)] - use crate::chain::Chain; use bp_message_lane::{LaneId, MessageNonce};