Skip to content

Commit

Permalink
chore(watch): decrease watch delay
Browse files Browse the repository at this point in the history
  • Loading branch information
AxolotlTears committed Jan 4, 2023
1 parent 915a59e commit 8e36256
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8e36256

Please sign in to comment.