From 7fd04573cdb167c500b3593f30bd5eaf0315a548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Saparelli?= Date: Sat, 22 Jan 2022 14:45:43 +1300 Subject: [PATCH] Final change to --debounce default: down to 50ms Closes #168 --- cli/src/args.rs | 2 +- cli/src/config/runtime.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/src/args.rs b/cli/src/args.rs index d1c2ebb..c4d3e31 100644 --- a/cli/src/args.rs +++ b/cli/src/args.rs @@ -78,7 +78,7 @@ pub fn get_args(tagged_filterer: bool) -> Result> { .long("kill")) .arg(Arg::with_name("debounce") .help_heading(Some(OPTSET_BEHAVIOUR)) - .help("Set the timeout between detected change and command execution, defaults to 100ms") + .help("Set the timeout between detected change and command execution, defaults to 50ms") .takes_value(true) .value_name("milliseconds") .short("d") diff --git a/cli/src/config/runtime.rs b/cli/src/config/runtime.rs index f98ac2e..f287797 100644 --- a/cli/src/config/runtime.rs +++ b/cli/src/config/runtime.rs @@ -30,7 +30,7 @@ pub fn runtime(args: &ArgMatches<'static>) -> Result { config.action_throttle(Duration::from_millis( args.value_of("debounce") - .unwrap_or("100") + .unwrap_or("50") .parse() .into_diagnostic()?, ));