[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run cargo update #694

Merged
merged 6 commits into from
Oct 22, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updates to use the new notify API
Signed-off-by: Taylor Thomas <taylor@oftaylor.com>
  • Loading branch information
thomastaylor312 committed Oct 20, 2021
commit 9e5b858bcf65e03ac096136150d8dca9c256cddf
4 changes: 2 additions & 2 deletions crates/kubelet/src/fs_watch/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ impl FileSystemWatcher {
#[cfg(not(target_os = "macos"))]
pub fn new<P: AsRef<Path>>(path: P) -> anyhow::Result<Self> {
let (stream_tx, stream_rx) = unbounded_channel::<NotifyResult<Event>>();
let mut watcher: RecommendedWatcher = Watcher::new_immediate(move |res| {
let mut watcher: RecommendedWatcher = notify::recommended_watcher(move |res| {
if let Err(e) = stream_tx.send(res) {
error!(error = %e, "Unable to send inotify event into stream")
}
})?;
watcher.configure(Config::PreciseEvents(true))?;

watcher.watch(path, RecursiveMode::NonRecursive)?;
watcher.watch(path.as_ref(), RecursiveMode::NonRecursive)?;

Ok(FileSystemWatcher {
recv: stream_rx,
Expand Down