perf: remove redundant contains_key check in ProofSequencer::add_proof (#20459)

This commit is contained in:
YK
2025-12-17 21:58:59 +08:00
committed by GitHub
parent d8acc1e4cf
commit c65df40526

View File

@@ -170,11 +170,6 @@ impl ProofSequencer {
while let Some(pending) = self.pending_proofs.remove(&current_sequence) {
consecutive_proofs.push(pending);
current_sequence += 1;
// if we don't have the next number, stop collecting
if !self.pending_proofs.contains_key(&current_sequence) {
break;
}
}
self.next_to_deliver += consecutive_proofs.len() as u64;