diff --git a/apps/explorer/priv/repo/migrations/20190124082812_add_index_on_transaction_nonce_and_from_address_hash.exs b/apps/explorer/priv/repo/migrations/20190124082812_add_index_on_transaction_nonce_and_from_address_hash.exs index 0ceec61122..8d8848a2d1 100644 --- a/apps/explorer/priv/repo/migrations/20190124082812_add_index_on_transaction_nonce_and_from_address_hash.exs +++ b/apps/explorer/priv/repo/migrations/20190124082812_add_index_on_transaction_nonce_and_from_address_hash.exs @@ -1,12 +1,6 @@ defmodule Explorer.Repo.Migrations.AddIndexOnTransactionNonceAndFromAddressHash do use Ecto.Migration - alias Ecto.Adapters.SQL - alias Explorer.Repo - - # 30 minutes - @timeout 60_000 * 30 - def change do create(index(:transactions, [:nonce, :from_address_hash, :block_hash])) create(index(:transactions, [:block_hash, :error])) diff --git a/apps/indexer/lib/indexer/replaced_transaction/fetcher.ex b/apps/indexer/lib/indexer/replaced_transaction/fetcher.ex index a042449e4e..805f3c830c 100644 --- a/apps/indexer/lib/indexer/replaced_transaction/fetcher.ex +++ b/apps/indexer/lib/indexer/replaced_transaction/fetcher.ex @@ -90,10 +90,9 @@ defmodule Indexer.ReplacedTransaction.Fetcher do Logger.debug("fetching replaced transactions for transactions") try do - {:ok, _} = - entries - |> Enum.map(¶ms/1) - |> Chain.update_replaced_transactions() + entries + |> Enum.map(¶ms/1) + |> Chain.update_replaced_transactions() :ok rescue