We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f6de2c commit 7fd09a9Copy full SHA for 7fd09a9
src/cmd/watch.rs
@@ -107,9 +107,15 @@ where
107
108
// Create a channel to receive the events.
109
let (tx, rx) = channel();
110
-
111
- let mut debouncer = match notify_debouncer_mini::new_debouncer(Duration::from_secs(1), None, tx)
112
- {
+ // Notify backend configuration
+ let backend_config = notify::Config::default().with_poll_interval(Duration::from_secs(1));
+
113
+ let mut debouncer = match notify_debouncer_mini::new_debouncer_opt::<_, notify::PollWatcher>(
114
+ Duration::from_secs(1),
115
+ None,
116
+ tx,
117
+ backend_config,
118
+ ) {
119
Ok(d) => d,
120
Err(e) => {
121
error!("Error while trying to watch the files:\n\n\t{:?}", e);
0 commit comments