Skip to content

Commit 78169a3

Browse files
committed
Merge branch 'rework_batcher_concurrency' of github.com:yetanotherco/aligned_layer into rework_batcher_concurrency
2 parents ac8dc95 + 763e725 commit 78169a3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

crates/batcher/src/types/batch_queue.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ impl Ord for BatchQueueEntryPriority {
106106
// Implementation of lowest-first:
107107
let ord: std::cmp::Ordering = other.max_fee.cmp(&self.max_fee);
108108
// This means, less max_fee will go first
109-
// We want this because we will .pop() to remove unwanted elements, low fee submitions.
109+
// We want this because we will .pop() to remove unwanted elements, low fee submissions.
110110

111111
if ord == std::cmp::Ordering::Equal {
112112
// Case of same max_fee:
@@ -200,8 +200,7 @@ pub(crate) fn extract_batch_directly(
200200
return Err(BatcherError::BatchCostTooHigh);
201201
}
202202

203-
// Extract remaining entries in sorted order
204-
// Since pop() gives highest priority first, we collect them directly
203+
// Extract remaining entries
205204
let mut batch_for_posting = Vec::new();
206205
while let Some((entry, _)) = batch_queue.pop() {
207206
batch_for_posting.push(entry);

0 commit comments

Comments
 (0)