Skip to content

Commit

Permalink
Set PollWatcher's default delay to 10 seconds
Browse files Browse the repository at this point in the history
10 ms seems a bit short especially since the mtime resolution is just 1 second.
  • Loading branch information
dfaust committed Jul 9, 2016
1 parent 5baf0cc commit ab8025a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/poll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<()> {
Expand Down

0 comments on commit ab8025a

Please sign in to comment.