|
|
@ -91,7 +91,7 @@ async fn watch<R: Runtime>(
|
|
|
|
|
|
|
|
|
|
|
|
let watcher = if let Some(delay) = options.delay_ms {
|
|
|
|
let watcher = if let Some(delay) = options.delay_ms {
|
|
|
|
let (tx, rx) = channel();
|
|
|
|
let (tx, rx) = channel();
|
|
|
|
let mut debouncer = new_debouncer(Duration::from_millis(delay), None, tx)?;
|
|
|
|
let mut debouncer = new_debouncer(Duration::from_millis(delay), tx)?;
|
|
|
|
let watcher = debouncer.watcher();
|
|
|
|
let watcher = debouncer.watcher();
|
|
|
|
for path in &paths {
|
|
|
|
for path in &paths {
|
|
|
|
watcher.watch(path, mode)?;
|
|
|
|
watcher.watch(path, mode)?;
|
|
|
|