Skip to content

Commit 4a62cd4

Browse files
committed
update notify
Signed-off-by: reubenmiller <[email protected]>
1 parent e882629 commit 4a62cd4

File tree

3 files changed

+27
-111
lines changed

3 files changed

+27
-111
lines changed

Cargo.lock

Lines changed: 24 additions & 105 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ mqttbytes = "0.6"
145145
mutants = "0.0.3"
146146
nanoid = "0.4"
147147
nix = "0.26"
148-
notify = { version = "6.1.1", default-features = false }
149-
notify-debouncer-full = { version = "0.3.1", default-features = false }
148+
notify = { version = "8.2.0", default-features = false }
149+
notify-debouncer-full = { version = "0.6.0", default-features = false }
150150
once_cell = "1.8"
151151
pad = "0.1"
152152
path-clean = "1.0"

crates/common/tedge_utils/src/notify.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use notify::event::RemoveKind;
66
use notify::EventKind;
77
use notify::RecommendedWatcher;
88
use notify::RecursiveMode;
9-
use notify::Watcher;
109
use notify_debouncer_full as debouncer;
1110
use std::hash::Hash;
1211
use std::path::Path;
@@ -146,9 +145,7 @@ impl NotifyStream {
146145
pub fn add_watcher(&mut self, dir_path: &Path) -> Result<(), NotifyStreamError> {
147146
// Try to use canonical paths to avoid false negatives when dealing with symlinks
148147
let dir_path = dir_path.canonicalize()?;
149-
self.debouncer
150-
.watcher()
151-
.watch(&dir_path, RecursiveMode::Recursive)?;
148+
self.debouncer.watch(&dir_path, RecursiveMode::Recursive)?;
152149

153150
Ok(())
154151
}

0 commit comments

Comments
 (0)