From 75d362e024899e964dc3fca16b81cd7951de811d Mon Sep 17 00:00:00 2001 From: Luke Imhoff Date: Tue, 8 May 2018 16:30:02 -0500 Subject: [PATCH] Use nowarn_function instead of .dialyzer-ignore --- .dialyzer-ignore | 1 - apps/explorer/lib/explorer/indexer/block_fetcher.ex | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.dialyzer-ignore b/.dialyzer-ignore index 4a48b6b1ba..1993ebca1d 100644 --- a/.dialyzer-ignore +++ b/.dialyzer-ignore @@ -1,4 +1,3 @@ :0: Unknown function 'Elixir.ExUnit.Callbacks':'__merge__'/3 :0: Unknown function 'Elixir.ExUnit.CaseTemplate':'__proxy__'/2 :0: Unknown type 'Elixir.Map':t/0 -apps/explorer/lib/explorer/indexer/block_fetcher.ex:224: The created fun has no local return diff --git a/apps/explorer/lib/explorer/indexer/block_fetcher.ex b/apps/explorer/lib/explorer/indexer/block_fetcher.ex index 1545f3d477..0f1d7c18d1 100644 --- a/apps/explorer/lib/explorer/indexer/block_fetcher.ex +++ b/apps/explorer/lib/explorer/indexer/block_fetcher.ex @@ -16,6 +16,9 @@ defmodule Explorer.Indexer.BlockFetcher do alias Explorer.JSONRPC.Transactions + # dialyzer thinks that Logger.debug functions always have no_local_return + @dialyzer {:nowarn_function, stream_import: 3} + @batch_size 1 @blocks_concurrency 10