pub fn clear_caches<Tree: MerkleTreeTrait>(
    replicas: &BTreeMap<SectorId, PrivateReplicaInfo<Tree>>,
) -> Result<()> {
    info!("clear_caches:start");

    for replica in replicas.values() {
        clear_cache::<Tree>(&replica.cache_dir.as_path())?;
    }

    info!("clear_caches:finish");

    Ok(())
}
// Ensure that any associated cached data persisted is discarded.
Ensure that any associated cached data persisted is discarded.
Ensure that any associated cached data persisted is discarded .
pub fn clear_caches<Tree: MerkleTreeTrait>(
    replicas: &BTreeMap<SectorId, PrivateReplicaInfo<Tree>>,
) -> Result<()> {
    info!("clear_caches:start");
    for replica in replicas.values() {
        clear_cache::<Tree>(&replica.cache_dir.as_path())?;
    }
    info!("clear_caches:finish");
    Ok(())
}
pub fn clear_caches < Tree : MerkleTreeTrait > ( replicas : & BTreeMap < SectorId , PrivateReplicaInfo < Tree > > , ) -> Result < ( ) > { info ! ( " " ) ; for replica in replicas . values ( ) { clear_cache :: < Tree > ( & replica . cache_dir . as_path ( ) ) ? ; } info ! ( " " ) ; Ok ( ( ) ) }
Ensure that any associated cached data persisted is discarded.
Ensure that any associated cached data persisted is discarded .
replicas
&BTreeMap<SectorId, PrivateReplicaInfo<Tree>>
replicas
&BTreeMap<SectorId, PrivateReplicaInfo<Tree>>