mirror of
https://github.com/encounter/notify.git
synced 2026-07-10 12:18:48 -07:00
Set PollWatcher's default delay to 10 seconds
10 ms seems a bit short especially since the mtime resolution is just 1 second.
This commit is contained in:
+1
-1
@@ -163,7 +163,7 @@ impl PollWatcher {
|
||||
|
||||
impl Watcher for PollWatcher {
|
||||
fn new(tx: Sender<Event>) -> Result<PollWatcher> {
|
||||
PollWatcher::with_delay(tx, 10)
|
||||
PollWatcher::with_delay(tx, 10_000)
|
||||
}
|
||||
|
||||
fn watch<P: AsRef<Path>>(&mut self, path: P, recursive_mode: RecursiveMode) -> Result<()> {
|
||||
|
||||
Reference in New Issue
Block a user