Log only uniq hashes

pull/6510/head
Qwerty5Uiop 2 years ago
parent a91f35e999
commit 772c06b035
  1. 6
      apps/indexer/lib/indexer/fetcher/internal_transaction.ex

@ -276,7 +276,11 @@ defmodule Indexer.Fetcher.InternalTransaction do
defp handle_foreign_key_violation(internal_transactions_params, block_numbers) do
Chain.remove_blocks_consensus(block_numbers)
transaction_hashes = Enum.map(internal_transactions_params, &to_string(&1.transaction_hash))
transaction_hashes =
internal_transactions_params
|> Enum.map(&to_string(&1.transaction_hash))
|> Enum.uniq()
Logger.error(fn ->
[

Loading…
Cancel
Save