Skip to content

Commit 9f0fd15

Browse files
committed
Simplify extract_batch
1 parent 1545dcb commit 9f0fd15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/batcher/src/types/batch_queue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ pub(crate) fn extract_batch_directly(
160160
let mut batch_size = calculate_batch_size(batch_queue)?;
161161
let mut rejected_entries = Vec::new();
162162

163-
// Remove entries that won't pay enough (same logic as try_build_batch)
163+
// Remove entries that won't pay enough, or that makes a queue that is too big
164164
loop {
165165
let should_remove = if let Some((entry, _)) = batch_queue.peek() {
166166
let batch_len = batch_queue.len();

0 commit comments

Comments
 (0)