Skip to content

Commit

Permalink
Clean up backup files (ArroyoSystems#706)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwylde authored Aug 5, 2024
1 parent 6ff0884 commit ba4b566
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/arroyo/src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,11 @@ impl MaybeLocalDb {
start.elapsed().as_secs_f32()
);

// delete the temp backup
if let Err(e) = tokio::fs::remove_file(&backup_file).await {
warn!("Unable to remove temporary db backup file: {:?}", e);
}

Ok(())
}
}
Expand Down

0 comments on commit ba4b566

Please sign in to comment.