Move missing ranges sanitize to MissingRangesCollector

pull/7493/head
Qwerty5Uiop 2 years ago
parent 7e81bd0d68
commit b4c960ef5d
  1. 1
      apps/explorer/lib/explorer/utility/missing_ranges_manipulator.ex
  2. 2
      apps/indexer/lib/indexer/block/catchup/missing_ranges_collector.ex

@ -30,7 +30,6 @@ defmodule Explorer.Utility.MissingRangesManipulator do
@impl true
def init(_) do
MissingBlockRange.sanitize_missing_block_ranges()
{:ok, %{}}
end

@ -40,6 +40,8 @@ defmodule Indexer.Block.Catchup.MissingRangesCollector do
end
defp default_init do
MissingBlockRange.sanitize_missing_block_ranges()
{min_number, max_number} = get_initial_min_max()
clear_to_bounds(min_number, max_number)

Loading…
Cancel
Save