pub fn has_batch(&self, batch_id: &str) -> Result<bool, BlockPublisherError> {
        self.pending_batches
            .read()
            .map(|pending_batches| pending_batches.contains(batch_id))
            .map_err(|_| BlockPublisherError::Internal("Pending batches lock poisoned".into()))
    }
/// Checks if the batch with the given ID is in the publisher's pending batches pool
Checks if the batch with the given ID is in the publisher's pending batches pool
Checks if the batch with the given ID is in the publisher ' s pending batches pool
pub fn has_batch(&self, batch_id: &str) -> Result<bool, BlockPublisherError> {
        self.pending_batches
            .read()
            .map(|pending_batches| pending_batches.contains(batch_id))
            .map_err(|_| BlockPublisherError::Internal("Pending batches lock poisoned".into()))
    }
pub fn has_batch ( & self , batch_id : & str ) -> Result < bool , BlockPublisherError > { self . pending_batches . read ( ) . map ( | pending_batches | pending_batches . contains ( batch_id ) ) . map_err ( | _ | BlockPublisherError :: Internal ( " " . into ( ) ) ) }
Checks if the batch with the given ID is in the publisher's pending batches pool
Checks if the batch with the given ID is in the publisher ' s pending batches pool
&self
batch_id
&str
&self
batch_id
&str