Skip to content

Commit

Permalink
missing events for PG
Browse files Browse the repository at this point in the history
  • Loading branch information
InoMurko committed Mar 12, 2021
1 parent 304a527 commit 73952fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/omg_watcher/lib/omg_watcher/exit_processor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ defmodule OMG.Watcher.ExitProcessor do
# Prepare events data for internal bus
events =
exits
|> Enum.map(fn %{call_data: %{input_utxos_pos: inputs}} = event ->
|> Enum.map(fn %{input_utxos_pos: inputs} = event ->
{event, inputs}
end)
|> Tools.to_bus_events_data()
Expand Down Expand Up @@ -728,7 +728,7 @@ defmodule OMG.Watcher.ExitProcessor do

defp publish_internal_bus_events([], _), do: :ok

defp publish_internal_bus_events(events_data, topic) when is_list(events_data) and is_binary(topic) do
defp publish_internal_bus_events(events_data, topic) when is_list(events_data) and is_atom(topic) do
{:watcher, topic}
|> OMG.Bus.Event.new(:data, events_data)
|> OMG.Bus.direct_local_broadcast()
Expand Down

0 comments on commit 73952fb

Please sign in to comment.