mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-19 03:01:02 +00:00
fix(rpc middleware): fix is_error bug (#11951)
* fix(rpc middleware): fix `is_error` bug * Update client/rpc-servers/src/middleware.rs
This commit is contained in:
@@ -176,7 +176,9 @@ impl Middleware for RpcMiddleware {
|
|||||||
.with_label_values(&[
|
.with_label_values(&[
|
||||||
self.transport_label,
|
self.transport_label,
|
||||||
name,
|
name,
|
||||||
if success { "true" } else { "false" },
|
// the label "is_error", so `success` should be regarded as false
|
||||||
|
// and vice-versa to be registrered correctly.
|
||||||
|
if success { "false" } else { "true" },
|
||||||
])
|
])
|
||||||
.inc();
|
.inc();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user