Skip to content

Commit c65df40

Browse files
authored
perf: remove redundant contains_key check in ProofSequencer::add_proof (paradigmxyz#20459)
1 parent d8acc1e commit c65df40

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

crates/engine/tree/src/tree/payload_processor/multiproof.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,6 @@ impl ProofSequencer {
170170
while let Some(pending) = self.pending_proofs.remove(&current_sequence) {
171171
consecutive_proofs.push(pending);
172172
current_sequence += 1;
173-
174-
// if we don't have the next number, stop collecting
175-
if !self.pending_proofs.contains_key(&current_sequence) {
176-
break;
177-
}
178173
}
179174

180175
self.next_to_deliver += consecutive_proofs.len() as u64;

0 commit comments

Comments
 (0)