Skip to content

Commit

Permalink
Fix histogram timer labels
Browse files Browse the repository at this point in the history
  • Loading branch information
mononaut committed Feb 22, 2024
1 parent 579a6cc commit 054b251
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/new_index/mempool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Txid>) -> 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,
Expand All @@ -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<Txid>) -> Vec<Transaction> {
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),
Expand Down

0 comments on commit 054b251

Please sign in to comment.