Skip to content

Commit 0ced7b0

Browse files
authored
metric block_sim_errors always output zero (#245)
1 parent 6bb48bf commit 0ced7b0

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

crates/rbuilder/src/telemetry/metrics.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,7 @@ register_metrics! {
109109
&["relay", "kind"]
110110
)
111111
.unwrap();
112-
pub static BLOCK_SIM_ERRORS: IntCounterVec = IntCounterVec::new(
113-
Opts::new("block_sim_errors", "counter of block simulation errors"),
114-
&[]
115-
)
112+
pub static BLOCK_SIM_ERRORS: IntCounter = IntCounter::new("block_sim_errors", "counter of block simulation errors")
116113
.unwrap();
117114
pub static SIMULATED_OK_ORDERS: IntCounter =
118115
IntCounter::new("simulated_ok_orders", "Simulated succeeded orders").unwrap();
@@ -246,7 +243,7 @@ pub fn inc_too_many_req_relay_errors(relay: &MevBoostRelayID) {
246243
}
247244

248245
pub fn inc_failed_block_simulations() {
249-
BLOCK_SIM_ERRORS.with_label_values(&[]).inc()
246+
BLOCK_SIM_ERRORS.inc()
250247
}
251248

252249
pub fn set_current_block(block: u64) {

0 commit comments

Comments
 (0)