diff options
| author | TenzinRabgy <tenzinrabgy@gmail.com> | 2023-01-04 04:49:51 -0500 |
|---|---|---|
| committer | TenzinRabgy <tenzinrabgy@gmail.com> | 2023-01-04 04:49:51 -0500 |
| commit | 8e36256eac3eeb289906a4f51d2a742d8ba45037 (patch) | |
| tree | 9be9d7d8eee1e089fff37bb1899d97eb1e98d719 | |
| parent | 915a59e514a36c678d3e4f4b3b64d1fa71ffcfeb (diff) | |
chore(watch): decrease watch delay
closes #1215
| -rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 7e9156f..59adb41 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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(); |
