mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 10:17:57 +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(&[
|
||||
self.transport_label,
|
||||
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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user