From 507e1c34b328fd40c3c2162749c74ad094110ecc Mon Sep 17 00:00:00 2001 From: Maxim Filonov <53992153+sl1depengwyn@users.noreply.github.com> Date: Thu, 13 Apr 2023 20:59:47 +0300 Subject: [PATCH] Fix default `TOKEN_EXCHANGE_RATE_REFETCH_INTERVAL` (#7270) * Fix default TOKEN_EXCHANGE_RATE_REFETCH_INTERVAL * Update CHANGELOG.md --------- Co-authored-by: Victor Baranov --- CHANGELOG.md | 2 ++ config/runtime.exs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 49fc6bf12b..e07476f15e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ ### Fixes +- [#7270](https://github.com/blockscout/blockscout/pull/7270) - Fix default `TOKEN_EXCHANGE_RATE_REFETCH_INTERVAL` + ### Chore
diff --git a/config/runtime.exs b/config/runtime.exs index 3fc77d3f9b..6cdecc77a1 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -260,7 +260,7 @@ config :explorer, Explorer.ExchangeRates.Source.CoinGecko, config :explorer, Explorer.ExchangeRates.TokenExchangeRates, enabled: !ConfigHelper.parse_bool_env_var("DISABLE_TOKEN_EXCHANGE_RATE", "true"), interval: ConfigHelper.parse_time_env_var("TOKEN_EXCHANGE_RATE_INTERVAL", "5s"), - refetch_interval: ConfigHelper.parse_time_env_var("TOKEN_EXCHANGE_RATE_REFETCH_INTERVAL", nil), + refetch_interval: ConfigHelper.parse_time_env_var("TOKEN_EXCHANGE_RATE_REFETCH_INTERVAL", "1h"), max_batch_size: ConfigHelper.parse_integer_env_var("TOKEN_EXCHANGE_RATE_MAX_BATCH_SIZE", 150) config :explorer, Explorer.Market.History.Cataloger, enabled: !disable_indexer?