From e22fca4adadf81f4b52f3717224f7e26bf9e3c45 Mon Sep 17 00:00:00 2001 From: Luke Imhoff Date: Tue, 18 Dec 2018 13:54:25 -0600 Subject: [PATCH] Don't use step variable twice Accidentally used `step` variable twice when the actual error is like `{:import, {:error, import_step, ..., ...}` which would only allow `{:import, {:error, :import, ..., ...}`. --- apps/indexer/lib/indexer/block/fetcher.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/indexer/lib/indexer/block/fetcher.ex b/apps/indexer/lib/indexer/block/fetcher.ex index ab4c8b48b0..2a3e66e4dd 100644 --- a/apps/indexer/lib/indexer/block/fetcher.ex +++ b/apps/indexer/lib/indexer/block/fetcher.ex @@ -149,7 +149,7 @@ defmodule Indexer.Block.Fetcher do {:ok, %{inserted: inserted, errors: blocks_errors ++ beneficiaries_errors}} else {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