/// Takes a batch from the front of the queue
Takes a batch from the front of the queue
Takes a batch from the front of the queue
pub fn pop(&mut self) -> Option<BatchPair> {
        self.batches.pop_front().map(|batch| {
            self.ids.remove(batch.batch().header_signature());
            gauge!(PENDING_BATCH_GAUGE, self.batches.len() as i64);
            batch
        })
    }
pub fn pop ( & mut self ) -> Option < BatchPair > { self . batches . pop_front ( ) . map ( | batch | { self . ids . remove ( batch . batch ( ) . header_signature ( ) ) ; gauge ! ( PENDING_BATCH_GAUGE self batches len ( ) as i64 ) ; batch } ) }
Takes a batch from the front of the queue
Takes a batch from the front of the queue
&mut self