pub async fn delete_trace_batch(&mut self, batch: &TraceBatchMeta) -> Result<(), Error> {
        let delete_start = Instant::now();
        for key in batch.keys.iter() {
            self.cache.remove_trace(&key)?;
            let deadline = Instant::now() + Duration::from_secs(1_000_000_000);
            self.blob.delete(deadline, key).await?;
        }
        self.metrics
            .trace
            .blob_delete_seconds
            .inc_by(delete_start.elapsed().as_secs_f64());
        self.metrics.trace.blob_delete_count.inc();
        self.metrics
            .trace
            .blob_delete_bytes
            .inc_by(batch.size_bytes);
        Ok(())
    }
/// Removes a batch from both [BlobMulti] storage and the local cache.
Removes a batch from both [BlobMulti] storage and the local cache.
Removes a batch from both [ BlobMulti ] storage and the local cache .
pub async fn delete_trace_batch(&mut self, batch: &TraceBatchMeta) -> Result<(), Error> {
        let delete_start = Instant::now();
        for key in batch.keys.iter() {
            self.cache.remove_trace(&key)?;
            let deadline = Instant::now() + Duration::from_secs(1_000_000_000);
            self.blob.delete(deadline, key).await?;
        }
        self.metrics
            .trace
            .blob_delete_seconds
            .inc_by(delete_start.elapsed().as_secs_f64());
        self.metrics.trace.blob_delete_count.inc();
        self.metrics
            .trace
            .blob_delete_bytes
            .inc_by(batch.size_bytes);
        Ok(())
    }
pub async fn delete_trace_batch ( & mut self , batch : & TraceBatchMeta ) -> Result < ( ) , Error > { let delete_start = Instant :: now ( ) ; for key in batch . keys . iter ( ) { self . cache . remove_trace ( & key ) ? ; let deadline = Instant :: now ( ) + Duration :: from_secs ( 1_000_000_000 ) ; self . blob . delete ( deadline , key ) . await ? ; } self . metrics . trace . blob_delete_seconds . inc_by ( delete_start . elapsed ( ) . as_secs_f64 ( ) ) ; self . metrics . trace . blob_delete_count . inc ( ) ; self . metrics . trace . blob_delete_bytes . inc_by ( batch . size_bytes ) ; Ok ( ( ) ) }
Removes a batch from both [BlobMulti] storage and the local cache.
Removes a batch from both [ BlobMulti ] storage and the local cache .
&mut self
batch
&TraceBatchMeta
&mut self
batch
&TraceBatchMeta