Merge pull request #1320 from AxolotlTears/main

Decrease watch delay
This commit is contained in:
liv 2023-01-05 15:27:35 +01:00 committed by GitHub
commit 5bcd2cee1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -350,7 +350,7 @@ fn watch(exercises: &[Exercise], verbose: bool) -> notify::Result<WatchStatus> {
let (tx, rx) = channel(); let (tx, rx) = channel();
let should_quit = Arc::new(AtomicBool::new(false)); let should_quit = Arc::new(AtomicBool::new(false));
let mut watcher: RecommendedWatcher = Watcher::new(tx, Duration::from_secs(2))?; let mut watcher: RecommendedWatcher = Watcher::new(tx, Duration::from_secs(1))?;
watcher.watch(Path::new("./exercises"), RecursiveMode::Recursive)?; watcher.watch(Path::new("./exercises"), RecursiveMode::Recursive)?;
clear_screen(); clear_screen();