diff --git a/apps/indexer/lib/indexer/block/fetcher.ex b/apps/indexer/lib/indexer/block/fetcher.ex index 9f9a9474f4..299bf8f9e0 100644 --- a/apps/indexer/lib/indexer/block/fetcher.ex +++ b/apps/indexer/lib/indexer/block/fetcher.ex @@ -20,10 +20,10 @@ defmodule Indexer.Block.Fetcher do ContractCode, InternalTransaction, ReplacedTransaction, + StakingPools, Token, TokenBalance, - UncleBlock, - StakingPools + UncleBlock } alias Indexer.Tracer diff --git a/apps/indexer/lib/indexer/fetcher/staking_pools.ex b/apps/indexer/lib/indexer/fetcher/staking_pools.ex index f380dc0e17..e5affe0177 100644 --- a/apps/indexer/lib/indexer/fetcher/staking_pools.ex +++ b/apps/indexer/lib/indexer/fetcher/staking_pools.ex @@ -9,8 +9,8 @@ defmodule Indexer.Fetcher.StakingPools do require Logger alias Explorer.Chain - alias Indexer.BufferedTask alias Explorer.Staking.PoolsReader + alias Indexer.BufferedTask @behaviour BufferedTask @@ -24,7 +24,7 @@ defmodule Indexer.Fetcher.StakingPools do @max_retries 3 @spec async_fetch() :: :ok - def async_fetch() do + def async_fetch do pid = GenServer.whereis(__MODULE__) if pid && Process.alive?(pid) do diff --git a/apps/indexer/lib/indexer/supervisor.ex b/apps/indexer/lib/indexer/supervisor.ex index c84a1b4460..c6b8c4fff8 100644 --- a/apps/indexer/lib/indexer/supervisor.ex +++ b/apps/indexer/lib/indexer/supervisor.ex @@ -16,11 +16,11 @@ defmodule Indexer.Supervisor do InternalTransaction, PendingTransaction, ReplacedTransaction, + StakingPools, Token, TokenBalance, TokenUpdater, - UncleBlock, - StakingPools + UncleBlock } alias Indexer.Temporary.{