Port fix for InvalidConsensus to Uncataloged

They have a similar style where Uncataloged could also receive
:queue_unavailable.
pull/1224/head
Luke Imhoff 6 years ago
parent c978b6168b
commit 6a0f625da7
  1. 5
      apps/indexer/lib/indexer/token_transfer/uncataloged/worker.ex

@ -76,7 +76,10 @@ defmodule Indexer.TokenTransfer.Uncataloged.Worker do
end end
def handle_info({ref, {:error, reason}}, %{task_ref: ref, retry_interval: millis} = state) do def handle_info({ref, {:error, reason}}, %{task_ref: ref, retry_interval: millis} = state) do
Logger.error(fn -> inspect(reason) end) case reason do
:queue_unavailable -> :ok
_ -> Logger.error(fn -> inspect(reason) end)
end
Process.demonitor(ref, [:flush]) Process.demonitor(ref, [:flush])
Process.send_after(self(), :push_front_blocks, millis) Process.send_after(self(), :push_front_blocks, millis)

Loading…
Cancel
Save