diff --git a/core/src/banking_stage/latest_unprocessed_votes.rs b/core/src/banking_stage/latest_unprocessed_votes.rs index e7aaf7d561e6d4..52b520b8a0322b 100644 --- a/core/src/banking_stage/latest_unprocessed_votes.rs +++ b/core/src/banking_stage/latest_unprocessed_votes.rs @@ -354,9 +354,8 @@ impl LatestUnprocessedVotes { if !Self::is_valid_for_our_fork(&latest_vote, &slot_hashes) { return None; } - latest_vote.take_vote().map(|vote| { + latest_vote.take_vote().inspect(|_vote| { self.num_unprocessed_votes.fetch_sub(1, Ordering::Relaxed); - vote }) }) })