Skip to content

Commit

Permalink
Use RecommendedWatcher instead of INotifyWatcher
Browse files Browse the repository at this point in the history
Summary:
Fixes issue on MacOS
  • Loading branch information
muhamadazmy committed Jan 10, 2025
1 parent 307e934 commit ac735ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/types/src/config_loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use std::time::Duration;
use crate::config::Configuration;
use figment::providers::{Env, Format, Serialized, Toml};
use figment::Figment;
use notify::{EventKind, INotifyWatcher, RecursiveMode};
use notify::{EventKind, RecommendedWatcher, RecursiveMode};
use notify_debouncer_full::{
new_debouncer, DebounceEventResult, DebouncedEvent, Debouncer, NoCache,
};
Expand Down Expand Up @@ -157,7 +157,7 @@ impl ConfigLoader {

fn handle_events(
&self,
debouncer: &mut Debouncer<INotifyWatcher, NoCache>,
debouncer: &mut Debouncer<RecommendedWatcher, NoCache>,
events: Vec<DebouncedEvent>,
) {
let mut should_update = false;
Expand Down

0 comments on commit ac735ac

Please sign in to comment.