Skip to content

Commit 5bcd2ce

Browse files
authored
Merge pull request #1320 from AxolotlTears/main
Decrease watch delay
2 parents 29ecee8 + 8e36256 commit 5bcd2ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ fn watch(exercises: &[Exercise], verbose: bool) -> notify::Result<WatchStatus> {
350350
let (tx, rx) = channel();
351351
let should_quit = Arc::new(AtomicBool::new(false));
352352

353-
let mut watcher: RecommendedWatcher = Watcher::new(tx, Duration::from_secs(2))?;
353+
let mut watcher: RecommendedWatcher = Watcher::new(tx, Duration::from_secs(1))?;
354354
watcher.watch(Path::new("./exercises"), RecursiveMode::Recursive)?;
355355

356356
clear_screen();

0 commit comments

Comments
 (0)