Skip to content

Commit

Permalink
fix rename temp file to cache file
Browse files Browse the repository at this point in the history
  • Loading branch information
Adinata Wijaya committed Sep 4, 2024
1 parent 8e06090 commit 96316de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/repo_tools/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ async fn get_file_cached<P: AsRef<Path>>(
let temp_file =
primitives::download_file(metadata, &repo_url, access_token, randomizer_bytes).await?;
if cache_file.is_file() {
debug!("cache file {:?} is already written from other process", &cache_file);
info!("cache file {:?} is already written from other process", &cache_file);
} else {
fs::rename(&temp_file.path(), cache_file.as_path())
.map_err(|e| {
Expand Down

0 comments on commit 96316de

Please sign in to comment.