fix credo warnings

pull/1801/head
saneery 6 years ago
parent b158d71219
commit fc79dfb9eb
  1. 4
      apps/indexer/lib/indexer/block/fetcher.ex
  2. 4
      apps/indexer/lib/indexer/fetcher/staking_pools.ex
  3. 4
      apps/indexer/lib/indexer/supervisor.ex

@ -20,10 +20,10 @@ defmodule Indexer.Block.Fetcher do
ContractCode, ContractCode,
InternalTransaction, InternalTransaction,
ReplacedTransaction, ReplacedTransaction,
StakingPools,
Token, Token,
TokenBalance, TokenBalance,
UncleBlock, UncleBlock
StakingPools
} }
alias Indexer.Tracer alias Indexer.Tracer

@ -9,8 +9,8 @@ defmodule Indexer.Fetcher.StakingPools do
require Logger require Logger
alias Explorer.Chain alias Explorer.Chain
alias Indexer.BufferedTask
alias Explorer.Staking.PoolsReader alias Explorer.Staking.PoolsReader
alias Indexer.BufferedTask
@behaviour BufferedTask @behaviour BufferedTask
@ -24,7 +24,7 @@ defmodule Indexer.Fetcher.StakingPools do
@max_retries 3 @max_retries 3
@spec async_fetch() :: :ok @spec async_fetch() :: :ok
def async_fetch() do def async_fetch do
pid = GenServer.whereis(__MODULE__) pid = GenServer.whereis(__MODULE__)
if pid && Process.alive?(pid) do if pid && Process.alive?(pid) do

@ -16,11 +16,11 @@ defmodule Indexer.Supervisor do
InternalTransaction, InternalTransaction,
PendingTransaction, PendingTransaction,
ReplacedTransaction, ReplacedTransaction,
StakingPools,
Token, Token,
TokenBalance, TokenBalance,
TokenUpdater, TokenUpdater,
UncleBlock, UncleBlock
StakingPools
} }
alias Indexer.Temporary.{ alias Indexer.Temporary.{

Loading…
Cancel
Save