From 4c6a3625d5814c3f03df7faa36bd9c4b80f35c6a Mon Sep 17 00:00:00 2001 From: Goshawk Date: Tue, 20 Aug 2024 16:20:18 +0300 Subject: [PATCH] node: Rename dur to expiration_time --- node/src/mempool.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/src/mempool.rs b/node/src/mempool.rs index 39815f2965..f38869927c 100644 --- a/node/src/mempool.rs +++ b/node/src/mempool.rs @@ -102,7 +102,7 @@ impl _ = on_idle_event.tick() => { info!(event = "mempool_idle", interval = ?idle_interval); - let dur = time::SystemTime::now() + let expiration_time = time::SystemTime::now() .duration_since(UNIX_EPOCH) .expect("valid timestamp") .checked_sub(mempool_expiry) @@ -110,7 +110,7 @@ impl // Remove expired transactions from the mempool db.read().await.update(|db| { - let expired_txs = db.get_expired_txs(dur.as_secs())?; + let expired_txs = db.get_expired_txs(expiration_time.as_secs())?; for tx_id in expired_txs { info!(event = "expired_tx", hash = hex::encode(tx_id)); if db.delete_tx(tx_id)? {