From dbb31100e590f4735c359e1212797020bb127557 Mon Sep 17 00:00:00 2001 From: perekopskiy Date: Wed, 16 Oct 2024 18:45:51 +0300 Subject: [PATCH] fix --- core/lib/mempool/src/mempool_store.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/mempool/src/mempool_store.rs b/core/lib/mempool/src/mempool_store.rs index acaf3f6ee02f..f6f9b72f9b64 100644 --- a/core/lib/mempool/src/mempool_store.rs +++ b/core/lib/mempool/src/mempool_store.rs @@ -236,7 +236,7 @@ impl MempoolStore { let mut sum = 0; let mut number_of_accounts_kept = 0; - for (_, txs) in possibly_kept { + for (_, txs) in &possibly_kept { sum += txs.len(); if sum <= self.capacity as usize { number_of_accounts_kept += 1;