diff --git a/src/new_index/mempool.rs b/src/new_index/mempool.rs index 6f2eee341..179829fd2 100644 --- a/src/new_index/mempool.rs +++ b/src/new_index/mempool.rs @@ -492,6 +492,8 @@ impl Mempool { } pub fn update(mempool: &Arc>, daemon: &Daemon) -> Result<()> { + let _timer = mempool.read().unwrap().latency.with_label_values(&["update"]).start_timer(); + // 1. Determine which transactions are no longer in the daemon's mempool and which ones have newly entered it let old_txids = mempool.read().unwrap().old_txids(); let all_txids = daemon