Fix ownership issue by cloning output_path

This commit is contained in:
RTSDA 2025-04-20 10:09:59 -04:00
parent 8fbc43a9ef
commit f07be605b7

View file

@ -25,7 +25,7 @@ async fn main() -> Result<()> {
println!("Watching directory: {}", watch_path.display());
println!("Output directory: {}", output_path.display());
let archiver = LivestreamArchiver::new(&output_path);
let archiver = LivestreamArchiver::new(&output_path.clone());
let processed_files = Arc::new(Mutex::new(HashSet::new()));
// Process existing files first