Fix ownership issue by cloning output_path
This commit is contained in:
parent
8fbc43a9ef
commit
f07be605b7
|
@ -25,7 +25,7 @@ async fn main() -> Result<()> {
|
||||||
println!("Watching directory: {}", watch_path.display());
|
println!("Watching directory: {}", watch_path.display());
|
||||||
println!("Output directory: {}", output_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()));
|
let processed_files = Arc::new(Mutex::new(HashSet::new()));
|
||||||
|
|
||||||
// Process existing files first
|
// Process existing files first
|
||||||
|
|
Loading…
Reference in a new issue