File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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) ;
You can’t perform that action at this time.
0 commit comments