fix: Replace deprecated parse(try_from_str(..)) with value_parser

See <https://github.com/clap-rs/clap/pull/3742>
pull/24376/head
Carol (Nichols || Goulding) 2022-09-29 10:56:09 -04:00 committed by Jake Goulding
parent 50f84906e2
commit c94c7eabbc
1 changed files with 2 additions and 2 deletions

View File

@ -198,7 +198,7 @@ pub struct SubConfig {
#[clap(
long,
default_value = "14d",
parse(try_from_str = parse_duration),
value_parser = parse_duration,
env = "INFLUXDB_IOX_GC_OBJECTSTORE_CUTOFF"
)]
objectstore_cutoff: Duration,
@ -227,7 +227,7 @@ pub struct SubConfig {
#[clap(
long,
default_value = "14d",
parse(try_from_str = parse_duration),
value_parser = parse_duration,
env = "INFLUXDB_IOX_GC_PARQUETFILE_CUTOFF"
)]
parquetfile_cutoff: Duration,