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:
Daniel Faust
2016-07-09 17:56:22 +02:00
parent 5baf0ccb0e
commit ab8025a529
+1 -1
View File
@@ -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<()> {