Skip to content

Commit

Permalink
fix error in invalidate cache
Browse files Browse the repository at this point in the history
  • Loading branch information
adalpane committed Jul 29, 2024
1 parent 42a50cc commit 0105d08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/blocking/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ impl Client {
if !Path::exists(&file_path) {
// File is missing, invalidate cache
download = true;
fs::remove_dir(&table_path).map_err(|e| anyhow::anyhow!("Error invalidating cache: {e}"))?;
fs::remove_dir_all(&table_path).map_err(|e| anyhow::anyhow!("Error invalidating cache: {e}"))?;
break;
}
file_paths.push(file_path.clone());
Expand Down
2 changes: 1 addition & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ impl Client {
if !Path::exists(&file_path) {
// File is missing, invalidate cache
download = true;
fs::remove_dir(&table_path).map_err(|e| anyhow::anyhow!("Error invalidating cache: {e}"))?;
fs::remove_dir_all(&table_path).map_err(|e| anyhow::anyhow!("Error invalidating cache: {e}"))?;
break;
}
file_paths.push(file_path.clone());
Expand Down

0 comments on commit 0105d08

Please sign in to comment.