runtime: make image cache async

This commit is contained in:
Alex Zenla
2024-03-07 05:26:35 +00:00
parent 7c8d38a0ca
commit 4c30f9d08f
2 changed files with 13 additions and 13 deletions

View File

@ -137,7 +137,7 @@ impl ImageCompiler<'_> {
);
let cache_digest = sha256::digest(cache_key);
if let Some(cached) = self.cache.recall(&cache_digest)? {
if let Some(cached) = self.cache.recall(&cache_digest).await? {
return Ok(cached);
}
@ -184,7 +184,7 @@ impl ImageCompiler<'_> {
self.squash(image_dir, squash_file)?;
let info = ImageInfo::new(squash_file.clone(), manifest.clone(), config)?;
self.cache.store(&cache_digest, &info)
self.cache.store(&cache_digest, &info).await
}
fn process_whiteout_entry<T: io::Read>(