Allow file watch setups to fail
This commit is contained in:
parent
fd3f877f93
commit
677413ef8c
1 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue