Merge pull request #8869 from blockscout/ap-limit-token-balance-fetcher-timeout

Limit TokenBalance fetcher timeout
pull/8879/head
Victor Baranov 1 year ago committed by GitHub
commit d37af38726
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 4
      apps/indexer/lib/indexer/fetcher/token_balance.ex

@ -23,6 +23,7 @@
### Fixes
- [#8869](https://github.com/blockscout/blockscout/pull/8869) - Limit TokenBalance fetcher timeout
- [#8855](https://github.com/blockscout/blockscout/pull/8855) - All transactions count at top addresses page
- [#8836](https://github.com/blockscout/blockscout/pull/8836) - Safe token update
- [#8814](https://github.com/blockscout/blockscout/pull/8814) - Improve performance for EOA addresses in `/api/v2/addresses/{address_hash}`

@ -28,6 +28,8 @@ defmodule Indexer.Fetcher.TokenBalance do
@default_max_batch_size 100
@default_max_concurrency 10
@timeout :timer.minutes(10)
@max_retries 3
@spec async_fetch([
@ -156,7 +158,7 @@ defmodule Indexer.Fetcher.TokenBalance do
address_current_token_balances: %{
params: TokenBalances.to_address_current_token_balances(formatted_token_balances_params)
},
timeout: :infinity
timeout: @timeout
}
case Chain.import(import_params) do

Loading…
Cancel
Save