From 4daa06ec54823a76cf67e52dc69660de4f83c387 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/new_index/mempool.rs b/src/new_index/mempool.rs index 2d0908f5..353a318c 100644 --- a/src/new_index/mempool.rs +++ b/src/new_index/mempool.rs @@ -290,7 +290,7 @@ 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 +311,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),