From ab8025a5296ff53cab0bcb5799b0ea2b88742022 Mon Sep 17 00:00:00 2001 From: Daniel Faust Date: Sat, 9 Jul 2016 17:56:22 +0200 Subject: [PATCH] Set PollWatcher's default delay to 10 seconds 10 ms seems a bit short especially since the mtime resolution is just 1 second. --- src/poll.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/poll.rs b/src/poll.rs index 81c6179..329daa5 100644 --- a/src/poll.rs +++ b/src/poll.rs @@ -163,7 +163,7 @@ impl PollWatcher { impl Watcher for PollWatcher { fn new(tx: Sender) -> Result { - PollWatcher::with_delay(tx, 10) + PollWatcher::with_delay(tx, 10_000) } fn watch>(&mut self, path: P, recursive_mode: RecursiveMode) -> Result<()> {