Wait 0.1s instead of 1.0s on config file change

This commit is contained in:
Tony Garnock-Jones 2021-10-05 19:09:32 +02:00
parent 81dfae92d8
commit 280d938cc0
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ fn run(t: &mut Activation, ds: Arc<Cap>, spec: internal_services::ConfigWatcher)
tracing::info!("watching {:?}", &path);
let (tx, rx) = channel();
let mut watcher = watcher(tx, Duration::from_secs(1)).map_err(convert_notify_error)?;
let mut watcher = watcher(tx, Duration::from_millis(100)).map_err(convert_notify_error)?;
watcher.watch(&path, RecursiveMode::Recursive).map_err(convert_notify_error)?;
let facet = t.facet.clone();