From 359b2608fe85932601bf243284c2b3017a261b49 Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Fri, 25 Jan 2019 14:28:45 +0300 Subject: [PATCH] fix dialyzer --- ...dd_index_on_transaction_nonce_and_from_address_hash.exs | 6 ------ apps/indexer/lib/indexer/replaced_transaction/fetcher.ex | 7 +++---- 2 files changed, 3 insertions(+), 10 deletions(-) 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