Final change to --debounce default: down to 50ms

Closes #168
This commit is contained in:
Félix Saparelli 2022-01-22 14:45:43 +13:00
parent df8977b37e
commit 7fd04573cd
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ pub fn get_args(tagged_filterer: bool) -> Result<ArgMatches<'static>> {
.long("kill")) .long("kill"))
.arg(Arg::with_name("debounce") .arg(Arg::with_name("debounce")
.help_heading(Some(OPTSET_BEHAVIOUR)) .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) .takes_value(true)
.value_name("milliseconds") .value_name("milliseconds")
.short("d") .short("d")

View File

@ -30,7 +30,7 @@ pub fn runtime(args: &ArgMatches<'static>) -> Result<RuntimeConfig> {
config.action_throttle(Duration::from_millis( config.action_throttle(Duration::from_millis(
args.value_of("debounce") args.value_of("debounce")
.unwrap_or("100") .unwrap_or("50")
.parse() .parse()
.into_diagnostic()?, .into_diagnostic()?,
)); ));