Allow file watch setups to fail

This commit is contained in:
Antoine Gersant 2025-01-31 00:45:03 -08:00
parent fd3f877f93
commit 677413ef8c

View file

@ -151,9 +151,12 @@ impl Scanner {
let mount_dirs = config_manager.get_mounts().await;
for mount_dir in &mount_dirs {
debouncer
if let Err(e) = debouncer
.watcher()
.watch(&mount_dir.source, notify::RecursiveMode::Recursive)?;
.watch(&mount_dir.source, notify::RecursiveMode::Recursive)
{
error!("Failed to setup file watcher for `{mount_dir:#?}`: {e}");
}
}
Ok(debouncer)