1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-12-14 11:22:55 +02:00

chore(watch): decrease watch delay

closes #1215
This commit is contained in:
TenzinRabgy 2023-01-04 04:49:51 -05:00
parent 915a59e514
commit 8e36256eac

View File

@ -350,7 +350,7 @@ fn watch(exercises: &[Exercise], verbose: bool) -> notify::Result<WatchStatus> {
let (tx, rx) = channel();
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)?;
clear_screen();