fixup! fixup! fix: poll on import completion and only new blocks

pull/1338/head
zachdaniel 6 years ago
parent e3c4703a99
commit 6bfc9cf4a6
  1. 12
      apps/indexer/lib/indexer/block/realtime/fetcher.ex

@ -88,12 +88,12 @@ defmodule Indexer.Block.Realtime.Fetcher do
new_timer = schedule_polling() new_timer = schedule_polling()
{:noreply, {:noreply,
%{ %{
state state
| previous_number: number, | previous_number: number,
max_number_seen: new_max_number, max_number_seen: new_max_number,
timer: new_timer timer: new_timer
}} }}
end end
@impl GenServer @impl GenServer

Loading…
Cancel
Save