Skip to content

Commit

Permalink
[TRIVIAL] Change the defaults in price estimation (#3007)
Browse files Browse the repository at this point in the history
# 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.
  • Loading branch information
m-lord-renkse authored Sep 23, 2024
1 parent 185586d commit 50c8ed9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/shared/src/price_estimation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 50c8ed9

Please sign in to comment.