shrink_data_map

Function shrink_data_map 

Source
pub fn shrink_data_map<F>(
    data_map: DataMap,
    store_chunk: F,
) -> Result<(DataMap, Vec<EncryptedChunk>)>
where F: FnMut(XorName, Bytes) -> Result<()>,
Expand description

Shrinks a data map by recursively encrypting it until the number of chunks is small enough Returns the final data map and all chunks generated during shrinking