Function forest_filecoin::db::car::plain::handle_write_cache
source · fn handle_write_cache(
write_cache: &mut CidHashMap<Vec<u8>>,
index: &mut CidHashMap<impl Any>,
k: &Cid,
block: &[u8],
) -> Result<()>
Expand description
§Panics
- If the write cache already contains different data with this CID
Note: This could potentially be enhanced with fine-grained read/write locking, however the performance is acceptable for now.