diff --git a/src/main.rs b/src/main.rs index ae6b0ce..88ca55f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -73,11 +73,13 @@ async fn main() -> Result<(), Box> { let mut req_file = OpenOptions::new() .create(true) + .truncate(true) .write(true) .open(Path::new(&args.storage_path).join(format!("{base_file_name}-req"))) .expect("Failed to create req file"); let mut res_file = OpenOptions::new() .create(true) + .truncate(true) .write(true) .open(Path::new(&args.storage_path).join(format!("{base_file_name}-res"))) .expect("Failed to create req file");