From 054b2511fd4ab6d71f97faa862bb503568a2e6cc Mon Sep 17 00:00:00 2001 From: Mononaut Date: Thu, 22 Feb 2024 22:24:53 +0000 Subject: [PATCH] Fix histogram timer labels --- src/new_index/mempool.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/new_index/mempool.rs b/src/new_index/mempool.rs index 2d0908f5..c3841d52 100644 --- a/src/new_index/mempool.rs +++ b/src/new_index/mempool.rs @@ -290,7 +290,10 @@ impl Mempool { // Get n txids after the given txid in the mempool pub fn txids_page(&self, n: usize, start: Option) -> Vec<&Txid> { - let _timer = self.latency.with_label_values(&["txs"]).start_timer(); + let _timer = self + .latency + .with_label_values(&["txids_page"]) + .start_timer(); let start_bound = match start { Some(txid) => Excluded(txid), None => Unbounded, @@ -311,7 +314,7 @@ impl Mempool { // Get n txs after the given txid in the mempool pub fn txs_page(&self, n: usize, start: Option) -> Vec { - let _timer = self.latency.with_label_values(&["txs"]).start_timer(); + let _timer = self.latency.with_label_values(&["txs_page"]).start_timer(); let mut page = Vec::with_capacity(n); let start_bound = match start { Some(txid) => Excluded(txid),