Skip to content

Commit

Permalink
put back timing logic for Mempool::update
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdorfman authored and shesek committed Apr 3, 2024
1 parent d2418fc commit 8700b17
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/new_index/mempool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,8 @@ impl Mempool {
}

pub fn update(mempool: &Arc<RwLock<Mempool>>, 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
Expand Down

0 comments on commit 8700b17

Please sign in to comment.