From 430ef387e24c464ae9464b3aa782e724cbf0017a Mon Sep 17 00:00:00 2001 From: James Dorfman Date: Tue, 2 Apr 2024 00:37:11 +0000 Subject: [PATCH] put back timing logic for Mempool::update --- src/new_index/mempool.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/new_index/mempool.rs b/src/new_index/mempool.rs index 6f56b6233..a83bab8b5 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 new_txids = daemon