Skip to content

Commit 430ef38

Browse files
committed
put back timing logic for Mempool::update
1 parent a0ff028 commit 430ef38

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/new_index/mempool.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,8 @@ impl Mempool {
492492
}
493493

494494
pub fn update(mempool: &Arc<RwLock<Mempool>>, daemon: &Daemon) -> Result<()> {
495+
let _timer = mempool.read().unwrap().latency.with_label_values(&["update"]).start_timer();
496+
495497
// 1. Determine which transactions are no longer in the daemon's mempool and which ones have newly entered it
496498
let old_txids = mempool.read().unwrap().old_txids();
497499
let new_txids = daemon

0 commit comments

Comments
 (0)