Revert "Downgrade notify and use RecommendedWatcher"
This reverts commit 5b0c86af7d.
The pre-5.0.12 release of notify fixed this issue.
This commit is contained in:
@@ -83,10 +83,9 @@ impl NotifyActor {
|
||||
self.watcher = None;
|
||||
if !config.watch.is_empty() {
|
||||
let (watcher_sender, watcher_receiver) = unbounded();
|
||||
let watcher =
|
||||
log_notify_error(RecommendedWatcher::new_immediate(move |event| {
|
||||
watcher_sender.send(event).unwrap()
|
||||
}));
|
||||
let watcher = log_notify_error(RecommendedWatcher::new(move |event| {
|
||||
watcher_sender.send(event).unwrap()
|
||||
}));
|
||||
self.watcher = watcher.map(|it| (it, watcher_receiver));
|
||||
}
|
||||
|
||||
@@ -215,7 +214,7 @@ impl NotifyActor {
|
||||
|
||||
fn watch(&mut self, path: AbsPathBuf) {
|
||||
if let Some((watcher, _)) = &mut self.watcher {
|
||||
log_notify_error(watcher.watch(&path, RecursiveMode::NonRecursive));
|
||||
log_notify_error(watcher.watch(path.as_ref(), RecursiveMode::NonRecursive));
|
||||
}
|
||||
}
|
||||
fn send(&mut self, msg: loader::Message) {
|
||||
|
||||
Reference in New Issue
Block a user