From 541e0ff06ec9f5f211160c3655f5f101d3244f7f Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 20 Mar 2024 15:18:50 -0600 Subject: [PATCH] Reduce notify debounce time to 100ms --- src/app.rs | 2 +- src/dialog.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.rs b/src/app.rs index 395e60a..28b6cec 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1577,7 +1577,7 @@ impl Application for App { let watcher_res = { let mut output = output.clone(); new_debouncer( - time::Duration::from_secs(1), + time::Duration::from_millis(100), None, move |events_res: notify_debouncer_full::DebounceEventResult| { match events_res { diff --git a/src/dialog.rs b/src/dialog.rs index fdfb64d..a6ae318 100644 --- a/src/dialog.rs +++ b/src/dialog.rs @@ -678,7 +678,7 @@ impl Application for App { let watcher_res = { let mut output = output.clone(); new_debouncer( - time::Duration::from_secs(1), + time::Duration::from_millis(100), None, move |events_res: notify_debouncer_full::DebounceEventResult| { match events_res {