fix tar initialization

This commit is contained in:
Ruben Fiszel
2023-08-14 17:49:46 +02:00
parent 8e935cc136
commit 95fea0731c
+6 -7
View File
@@ -344,17 +344,16 @@ pub async fn copy_denogo_cache_from_bucket_as_tar(bucket: &str) {
return;
}
if let Err(e) =
tokio::fs::remove_file(format!("{ROOT_TMP_CACHE_DIR}{TAR_CACHE_FILENAME}")).await
{
tracing::info!("Failed to remove denogobuntar cache. Error: {:?}", e);
return;
};
tracing::info!(
"Finished untaring denogobun tar to /tmpcache. took: {}s",
start.elapsed().as_secs()
);
if let Err(e) =
tokio::fs::remove_file(format!("{ROOT_TMP_CACHE_DIR}{TAR_CACHE_FILENAME}")).await
{
tracing::info!("Failed to remove denogobuntar cache. Error: {:?}", e);
};
}
#[cfg(feature = "enterprise")]