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,
InternalTransaction,
ReplacedTransaction,
StakingPools,
Token,
TokenBalance,
UncleBlock,
StakingPools
UncleBlock
}
alias Indexer.Tracer

@ -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

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

Loading…
Cancel
Save