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 committed Apr 2, 2024
1 parent a0ff028 commit 430ef38
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 new_txids = daemon
Expand Down

0 comments on commit 430ef38

Please sign in to comment.