diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e2cdce886..d58e22b782 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -49,7 +49,7 @@ - [#3335](https://github.com/poanetwork/blockscout/pull/3335) - MarketCap calculation: check that ETS tables exist before inserting new data or lookup from the table ### Chore -- [#3446](https://github.com/poanetwork/blockscout/pull/3446) - Set infinity timeout and increase cache invalidation period for counters on the main page +- [#3446](https://github.com/poanetwork/blockscout/pull/3446), [#3448](https://github.com/poanetwork/blockscout/pull/3448) - Set infinity timeout and increase cache invalidation period for counters - [#3431](https://github.com/poanetwork/blockscout/pull/3431) - Standardize token name definition, if name is empty - [#3421](https://github.com/poanetwork/blockscout/pull/3421) - Functions to enable GnosisSafe app link - [#3414](https://github.com/poanetwork/blockscout/pull/3414) - Manage lis of other explorers in the footer via env var diff --git a/apps/explorer/lib/explorer/chain.ex b/apps/explorer/lib/explorer/chain.ex index 5b4fad9a33..8c35720790 100644 --- a/apps/explorer/lib/explorer/chain.ex +++ b/apps/explorer/lib/explorer/chain.ex @@ -4567,7 +4567,7 @@ defmodule Explorer.Chain do def count_token_holders_from_token_hash(contract_address_hash) do query = from(ctb in CurrentTokenBalance.token_holders_query(contract_address_hash), select: fragment("COUNT(*)")) - Repo.one!(query) + Repo.one!(query, timeout: :infinity) end @spec address_to_unique_tokens(Hash.Address.t(), [paging_options]) :: [TokenTransfer.t()] diff --git a/apps/explorer/lib/explorer/chain/token_transfer.ex b/apps/explorer/lib/explorer/chain/token_transfer.ex index 00f3eea4ca..3445cc7598 100644 --- a/apps/explorer/lib/explorer/chain/token_transfer.ex +++ b/apps/explorer/lib/explorer/chain/token_transfer.ex @@ -186,7 +186,7 @@ defmodule Explorer.Chain.TokenTransfer do select: fragment("COUNT(*)") ) - Repo.one(query) + Repo.one(query, timeout: :infinity) end @spec count_token_transfers_from_token_hash_and_token_id(Hash.t(), binary()) :: non_neg_integer() @@ -198,7 +198,7 @@ defmodule Explorer.Chain.TokenTransfer do select: fragment("COUNT(*)") ) - Repo.one(query) + Repo.one(query, timeout: :infinity) end def page_token_transfer(query, %PagingOptions{key: nil}), do: query