summaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2017-09-05 09:03:30 -0700
committerJoe Wilm <jwilm@users.noreply.github.com>2017-09-05 09:07:00 -0700
commit8990aa4568ea8a7481f827512b7487be4d39332a (patch)
tree92be6c91ad35c94325b1bd9e076b12b15623e0d2 /src/config.rs
parent2f095d40963e1d2c2608272bf76f71381ef8c471 (diff)
Comment about duration arg to file watcher
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index 3c57560c..61ca5544 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -1474,6 +1474,7 @@ impl Monitor {
Monitor {
_thread: ::util::thread::spawn_named("config watcher", move || {
let (tx, rx) = mpsc::channel();
+ // The Duration argument is a debouncing period.
let mut watcher = watcher(tx, Duration::from_millis(10)).unwrap();
let config_path = ::std::fs::canonicalize(path)
.expect("canonicalize config path");