Merge pull request #1256 from poanetwork/step-step

Don't use step variable twice
pull/1255/head
Luke Imhoff 6 years ago committed by GitHub
commit 131e972526
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/indexer/lib/indexer/block/fetcher.ex

@ -149,7 +149,7 @@ defmodule Indexer.Block.Fetcher do
{:ok, %{inserted: inserted, errors: blocks_errors ++ beneficiaries_errors}} {:ok, %{inserted: inserted, errors: blocks_errors ++ beneficiaries_errors}}
else else
{step, {:error, reason}} -> {:error, {step, reason}} {step, {:error, reason}} -> {:error, {step, reason}}
{step, {:error, step, failed_value, changes_so_far}} -> {:error, {step, failed_value, changes_so_far}} {:import, {:error, step, failed_value, changes_so_far}} -> {:error, {step, failed_value, changes_so_far}}
end end
end end

Loading…
Cancel
Save