/// Removes the batches with the given IDs from the pool
///
/// This method is called when a new block is published
Removes the batches with the given IDs from the pool
This method is called when a new block is published
Removes the batches with the given IDs from the pool This method is called when a new block is published
pub fn update(&mut self, published_batch_ids: HashSet<&str>) {
        self.batches
            .retain(|batch| !published_batch_ids.contains(batch.batch().header_signature()));
        for id in published_batch_ids {
            self.ids.remove(id);
        }
        gauge!(
            "publisher.BlockPublisher.pending_batch_gauge",
            self.batches.len() as i64
        );
    }
pub fn update ( & mut self , published_batch_ids : HashSet < & str > ) { self . batches . retain ( | batch | ! published_batch_ids . contains ( batch . batch ( ) . header_signature ( ) ) ) ; for id in published_batch_ids { self . ids . remove ( id ) ; } gauge ! ( " " self batches len ( ) as i64 ) ; }
Removes the batches with the given IDs from the pool
This method is called when a new block is published
Removes the batches with the given IDs from the pool This method is called when a new block is published
&mut self
published_batch_ids
HashSet<&str>