Skip to content

Commit 0f253e5

Browse files
committed
jsonrpsee v0.20
1 parent fa4c672 commit 0f253e5

106 files changed

Lines changed: 1256 additions & 1084 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

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

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,3 +527,6 @@ wasmi = { opt-level = 3 }
527527
x25519-dalek = { opt-level = 3 }
528528
yamux = { opt-level = 3 }
529529
zeroize = { opt-level = 3 }
530+
531+
[patch.crates-io]
532+
jsonrpsee = { git = "https://github.com/paritytech/jsonrpsee" }

cumulus/client/relay-chain-interface/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ sc-client-api = { path = "../../../substrate/client/api" }
1717
futures = "0.3.28"
1818
async-trait = "0.1.73"
1919
thiserror = "1.0.48"
20-
jsonrpsee-core = "0.16.2"
20+
jsonrpsee-core = "0.20.1"
2121
parity-scale-codec = "3.6.4"

cumulus/client/relay-chain-rpc-interface/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ tokio-util = { version = "0.7.8", features = ["compat"] }
2828
futures = "0.3.28"
2929
futures-timer = "3.0.2"
3030
parity-scale-codec = "3.6.4"
31-
jsonrpsee = { version = "0.16.2", features = ["ws-client"] }
31+
jsonrpsee = { version = "0.20", features = ["ws-client"] }
3232
tracing = "0.1.37"
3333
async-trait = "0.1.73"
3434
url = "2.4.0"

cumulus/client/relay-chain-rpc-interface/src/rpc_client.rs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,16 @@ impl RelayChainRpcClient {
200200
))
201201
})?;
202202

203-
let value = rx.await.map_err(|err| {
204-
RelayChainError::WorkerCommunicationError(format!(
205-
"Unexpected channel close on RPC worker side: {}",
206-
err
207-
))
208-
})??;
203+
// TODO(niklasad1): fix this.
204+
let value = rx
205+
.await
206+
.map_err(|err| {
207+
RelayChainError::WorkerCommunicationError(format!(
208+
"Unexpected channel close on RPC worker side: {}",
209+
err
210+
))
211+
})?
212+
.unwrap();
209213

210214
serde_json::from_value(value).map_err(|_| {
211215
trace_error(&RelayChainError::GenericError("Unable to deserialize value".to_string()));

cumulus/parachain-template/node/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ clap = { version = "4.4.4", features = ["derive"] }
1515
log = "0.4.20"
1616
codec = { package = "parity-scale-codec", version = "3.0.0" }
1717
serde = { version = "1.0.188", features = ["derive"] }
18-
jsonrpsee = { version = "0.16.2", features = ["server"] }
18+
jsonrpsee = { version = "0.20", features = ["server"] }
1919
futures = "0.3.28"
2020

2121
# Local

cumulus/polkadot-parachain/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ bridge-hub-rococo-runtime = { path = "../parachains/runtimes/bridge-hubs/bridge-
3434
bridge-hub-kusama-runtime = { path = "../parachains/runtimes/bridge-hubs/bridge-hub-kusama" }
3535
bridge-hub-polkadot-runtime = { path = "../parachains/runtimes/bridge-hubs/bridge-hub-polkadot" }
3636
penpal-runtime = { path = "../parachains/runtimes/testing/penpal" }
37-
jsonrpsee = { version = "0.16.2", features = ["server"] }
37+
jsonrpsee = { version = "0.20", features = ["server"] }
3838
parachains-common = { path = "../parachains/common" }
3939

4040
# Substrate

cumulus/test/service/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ async-trait = "0.1.73"
1414
clap = { version = "4.4.4", features = ["derive"] }
1515
codec = { package = "parity-scale-codec", version = "3.0.0" }
1616
criterion = { version = "0.5.1", features = [ "async_tokio" ] }
17-
jsonrpsee = { version = "0.16.2", features = ["server"] }
17+
jsonrpsee = { version = "0.20", features = ["server"] }
1818
rand = "0.8.5"
1919
serde = { version = "1.0.188", features = ["derive"] }
2020
tokio = { version = "1.32.0", features = ["macros"] }

cumulus/test/service/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,7 @@ pub fn node_config(
774774
rpc_id_provider: None,
775775
rpc_max_subs_per_conn: Default::default(),
776776
rpc_port: 9945,
777+
rpc_message_buffer_capacity: Default::default(),
777778
prometheus_config: None,
778779
telemetry_endpoints: None,
779780
default_heap_pages: None,

polkadot/node/test/service/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ pub fn node_config(
181181
rpc_id_provider: None,
182182
rpc_max_subs_per_conn: Default::default(),
183183
rpc_port: 9944,
184+
rpc_message_buffer_capacity: Default::default(),
184185
prometheus_config: None,
185186
telemetry_endpoints: None,
186187
default_heap_pages: None,

0 commit comments

Comments
 (0)