Skip to content

Commit 4a72d55

Browse files
authored
fix: update jsonrpsee to track active requests correctly (#1749)
1 parent df7a254 commit 4a72d55

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

Cargo.lock

+16-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ rlp = "=0.5.2"
7676
triehash = "=0.8.4"
7777

7878
# network
79-
jsonrpsee = { version = "=0.24.5", features = ["server", "client"] }
79+
jsonrpsee = { version = "=0.24.6", features = ["server", "client"] }
8080
reqwest = { version = "=0.12.4", features = ["json"] }
8181
tonic = "=0.11.0"
8282
tower = "=0.4.13"

src/eth/rpc/rpc_middleware.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ impl<'a> RpcServiceT<'a> for RpcMiddleware {
122122

123123
// active requests
124124
if let Some(guard) = request.extensions.get::<ConnectionGuard>() {
125-
let active = guard.max_connections() - guard.available_connections(); // TODO: wait for this to be fixed https://github.com/paritytech/jsonrpsee/issues/1467
125+
let active = guard.max_connections() - guard.available_connections();
126126
metrics::set_rpc_requests_active(active as u64);
127127
}
128128
}

0 commit comments

Comments
 (0)