Skip to content

Commit

Permalink
Fix default TOKEN_EXCHANGE_RATE_REFETCH_INTERVAL (blockscout#7270)
Browse files Browse the repository at this point in the history
* Fix default TOKEN_EXCHANGE_RATE_REFETCH_INTERVAL

* Update CHANGELOG.md

---------

Co-authored-by: Victor Baranov <baranov.viktor.27@gmail.com>
  • Loading branch information
sl1depengwyn and vbaranov committed Apr 13, 2023
1 parent 641558c commit 507e1c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

### Fixes

- [#7270](https://github.com/blockscout/blockscout/pull/7270) - Fix default `TOKEN_EXCHANGE_RATE_REFETCH_INTERVAL`

### Chore

<details>
Expand Down
2 changes: 1 addition & 1 deletion config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 507e1c3

Please sign in to comment.