Adjust debouncer time to 250ms

This commit is contained in:
Jeremy Soller 2024-03-20 15:43:44 -06:00
parent 94a6261885
commit 64612b7230
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
2 changed files with 4 additions and 4 deletions

View file

@ -1577,8 +1577,8 @@ impl Application for App {
let watcher_res = {
let mut output = output.clone();
new_debouncer(
time::Duration::from_secs(1),
None,
time::Duration::from_millis(250),
Some(time::Duration::from_millis(250)),
move |events_res: notify_debouncer_full::DebounceEventResult| {
match events_res {
Ok(mut events) => {

View file

@ -678,8 +678,8 @@ impl Application for App {
let watcher_res = {
let mut output = output.clone();
new_debouncer(
time::Duration::from_secs(1),
None,
time::Duration::from_millis(250),
Some(time::Duration::from_millis(250)),
move |events_res: notify_debouncer_full::DebounceEventResult| {
match events_res {
Ok(mut events) => {