From e3dbc2a0e2357adfc81062796e56c003de8e25e4 Mon Sep 17 00:00:00 2001 From: ascjones Date: Mon, 9 May 2022 10:12:52 +0100 Subject: [PATCH 1/2] Update jsonrpsee --- subxt/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subxt/Cargo.toml b/subxt/Cargo.toml index 84f6537f57..5a2017941e 100644 --- a/subxt/Cargo.toml +++ b/subxt/Cargo.toml @@ -24,7 +24,7 @@ codec = { package = "parity-scale-codec", version = "3.0.0", default-features = scale-info = { version = "2.0.0", features = ["bit-vec"] } futures = "0.3.13" hex = "0.4.3" -jsonrpsee = { version = "0.10.1", features = ["async-client", "client-ws-transport"] } +jsonrpsee = { version = "0.12.0", features = ["async-client", "client-ws-transport"] } log = "0.4.14" serde = { version = "1.0.124", features = ["derive"] } serde_json = "1.0.64" From 2663fbd4cd37c07aacdaae858ba941e3b1de5992 Mon Sep 17 00:00:00 2001 From: ascjones Date: Mon, 9 May 2022 10:15:16 +0100 Subject: [PATCH 2/2] Update ws_client builder --- subxt/src/rpc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subxt/src/rpc.rs b/subxt/src/rpc.rs index b606c1964d..ce0234e44c 100644 --- a/subxt/src/rpc.rs +++ b/subxt/src/rpc.rs @@ -564,7 +564,7 @@ pub async fn ws_client(url: &str) -> Result { let (sender, receiver) = ws_transport(url).await?; Ok(RpcClientBuilder::default() .max_notifs_per_subscription(4096) - .build(sender, receiver)) + .build_with_tokio(sender, receiver)) } async fn ws_transport(url: &str) -> Result<(WsSender, WsReceiver), RpcError> {