summaryrefslogtreecommitdiff
path: root/src/watch.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-04-25 03:28:44 +0200
committermo8it <mo8it@proton.me>2024-04-25 03:28:44 +0200
commit428998a4cf74246b0a1da4b8013b504d86cdabeb (patch)
treee5943a190608439c0fa5287641507c5680888537 /src/watch.rs
parentd26f47ddddaabcde36d5cb02ec220ccd1c141f10 (diff)
Quicker response to file changes
Diffstat (limited to 'src/watch.rs')
-rw-r--r--src/watch.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/watch.rs b/src/watch.rs
index 5ebe526..1e22f59 100644
--- a/src/watch.rs
+++ b/src/watch.rs
@@ -51,7 +51,7 @@ pub fn watch(
// Otherwise, the file watcher exits.
let _debouncer_guard = if let Some(exercise_paths) = notify_exercise_paths {
let mut debouncer = new_debouncer(
- Duration::from_secs(1),
+ Duration::from_millis(500),
DebounceEventHandler {
tx: tx.clone(),
exercise_paths,