Skip to content

Commit

Permalink
rpc: syncronize ws ping/pongs
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasad1 committed Aug 2, 2024
1 parent 776e957 commit 90e0a1c
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 51 deletions.
81 changes: 33 additions & 48 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -806,8 +806,8 @@ isahc = { version = "1.2" }
itertools = { version = "0.11" }
jobserver = { version = "0.1.26" }
jsonpath_lib = { version = "0.3" }
jsonrpsee = { version = "0.23.2" }
jsonrpsee-core = { version = "0.23.2" }
jsonrpsee = { version = "0.24.1" }
jsonrpsee-core = { version = "0.24.1" }
k256 = { version = "0.13.3", default-features = false }
kitchensink-runtime = { path = "substrate/bin/node/runtime" }
kvdb = { version = "0.13.0" }
Expand Down Expand Up @@ -1430,3 +1430,7 @@ wasmi = { opt-level = 3 }
x25519-dalek = { opt-level = 3 }
yamux = { opt-level = 3 }
zeroize = { opt-level = 3 }

[patch.crates-io]
jsonrpsee = { git = "https://github.com/paritytech/jsonrpsee", branch = "na-fix-1433" }
jsonrpsee-core = { git = "https://github.com/paritytech/jsonrpsee", branch = "na-fix-1433" }
2 changes: 1 addition & 1 deletion substrate/client/rpc-servers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ where
.rpc_logger(1024)
.option_layer(middleware_layer.clone());
let mut svc =
service_builder.set_rpc_middleware(rpc_middleware).build(methods, stop_handle);
service_builder.set_rpc_middleware(rpc_middleware).build(methods, stop_handle, remote_addr);

async move {
if is_websocket {
Expand Down

0 comments on commit 90e0a1c

Please sign in to comment.