File tree Expand file tree Collapse file tree
batcher/aligned-batcher/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ use types::batch_state::BatchState;
1717use types:: user_state:: UserState ;
1818
1919use batch_queue:: calculate_batch_size;
20+ use std:: cmp:: Ordering ;
2021use std:: collections:: HashMap ;
2122use std:: env;
2223use std:: net:: SocketAddr ;
@@ -809,7 +810,7 @@ impl Batcher {
809810
810811 if let Some ( lowest_entry_priority) = batch_state_lock. lowest_entry_priority ( ) {
811812 // If the new proof has more priority than the lowest one in the queue, discard the latter one and push the new one
812- if msg_entry_priority > lowest_entry_priority {
813+ if lowest_entry_priority . cmp ( & msg_entry_priority) == Ordering :: Greater {
813814 let Some ( ( removed_entry, _) ) = batch_state_lock. batch_queue . pop ( ) else {
814815 warn ! ( "Failed to remove lowest-priority proof despite queue being full." ) ;
815816 std:: mem:: drop ( batch_state_lock) ;
You can’t perform that action at this time.
0 commit comments