Skip to content

Commit c311cd0

Browse files
committed
Modify len
1 parent d500e2c commit c311cd0

File tree

1 file changed

+1
-3
lines changed
  • batcher/aligned-batcher/src

1 file changed

+1
-3
lines changed

batcher/aligned-batcher/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,10 +1060,8 @@ impl Batcher {
10601060
BatchQueueEntryPriority::new(max_fee, nonce),
10611061
);
10621062

1063-
let batch_queue_len = batch_state_lock.batch_queue.len();
1064-
10651063
// if max batch qty exceded, remove least priority element
1066-
if batch_queue_len > self.max_batch_proof_qty {
1064+
if batch_state_lock.batch_queue.len() > self.max_batch_proof_qty {
10671065
info!("Queue limit exceded, removing least priority element");
10681066

10691067
if let Some(lowest_priority_entry) = batch_state_lock.batch_queue.pop_min() {

0 commit comments

Comments
 (0)