Fix for dialyzer

pull/7712/head
POA 1 year ago
parent c76695490a
commit 97d6e81f43
  1. 11
      apps/indexer/lib/indexer/block/fetcher.ex

@ -192,11 +192,12 @@ defmodule Indexer.Block.Fetcher do
withdrawals: %{params: withdrawals_params}
}
),
{:ok, inserted_tx_actions} <-
Chain.import(%{
transaction_actions: %{params: transaction_actions},
timeout: :infinity
}) do
{:tx_actions, {:ok, inserted_tx_actions}} <-
{:tx_actions,
Chain.import(%{
transaction_actions: %{params: transaction_actions},
timeout: :infinity
})} do
inserted = Map.merge(inserted, inserted_tx_actions)
Prometheus.Instrumenter.block_batch_fetch(fetch_time, callback_module)
result = {:ok, %{inserted: inserted, errors: blocks_errors}}

Loading…
Cancel
Save