perf: remove redundant contains_key (#20820)

This commit is contained in:
かりんとう
2026-01-09 15:22:06 +00:00
committed by GitHub
parent 020f20db42
commit 84e970e4c9

View File

@@ -144,11 +144,6 @@ impl ProofSequencer {
self.pending_proofs.insert(sequence, update);
}
// return early if we don't have the next expected proof
if !self.pending_proofs.contains_key(&self.next_to_deliver) {
return Vec::new()
}
let mut consecutive_proofs = Vec::with_capacity(self.pending_proofs.len());
let mut current_sequence = self.next_to_deliver;