From 50c8ed9ce721407df36150ceedb48a2830ea15ed Mon Sep 17 00:00:00 2001 From: m-lord-renkse <160488334+m-lord-renkse@users.noreply.github.com> Date: Mon, 23 Sep 2024 12:23:11 +0200 Subject: [PATCH] [TRIVIAL] Change the defaults in price estimation (#3007) # Description Change the defaults in the price estimation. The reason is that if by accident we don't configure it (as it happened...), we don't burn out API credits fast. The default values should be reasonable. --- crates/shared/src/price_estimation.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/shared/src/price_estimation.rs b/crates/shared/src/price_estimation.rs index 6f8fdd3b23..6a8fa88674 100644 --- a/crates/shared/src/price_estimation.rs +++ b/crates/shared/src/price_estimation.rs @@ -138,7 +138,7 @@ pub struct Arguments { #[clap( long, env, - default_value = "30s", + default_value = "10m", value_parser = humantime::parse_duration, )] pub native_price_cache_max_age: Duration, @@ -150,7 +150,7 @@ pub struct Arguments { #[clap( long, env, - default_value = "2s", + default_value = "80s", value_parser = humantime::parse_duration, )] pub native_price_prefetch_time: Duration,