in content-addressed-cache/src/synchronizer.rs [233:248]
fn fetch_and_populate(
&self,
keyset_id: KeysetID,
dest_cache: &dyn Cache,
) -> Result<(PopulateResult, KeysetID)> {
let fetched_keyset_id = self.fetch(keyset_id).context("Fetching index updates")?;
let populate_result = self
.populate(&fetched_keyset_id, dest_cache)
.with_context(|| format!("Populating cache from commit {}", fetched_keyset_id))?;
if !populate_result.is_noop() {
info!(?populate_result, commit_id = %fetched_keyset_id, "Populated index");
}
Ok((populate_result, fetched_keyset_id))
}