Skip to content

Commit

Permalink
fix: local broadcast transaction broadcaster (#2153)
Browse files Browse the repository at this point in the history
* fix: just do a local_broadcast here

* fix: not used

* fix: bump version
  • Loading branch information
chasers authored Jul 19, 2024
1 parent 86bc382 commit a76552e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.7.12
1.7.13
1 change: 0 additions & 1 deletion lib/logflare/context_cache/supervisor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ defmodule Logflare.ContextCache.Supervisor do
"""
def maybe_start_cainophile do
spec = cainophile_child_spec()
Supervisor.which_children(__MODULE__)
Supervisor.start_child(__MODULE__, spec)
end

Expand Down
2 changes: 1 addition & 1 deletion lib/logflare/context_cache/transaction_broadcaster.ex
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ defmodule Logflare.ContextCache.TransactionBroadcaster do
def handle_info(%Transaction{changes: _changes} = transaction, state) do
Logger.debug("WAL record received from cainophile: #{inspect(transaction)}")
# broadcast it
Phoenix.PubSub.broadcast(Logflare.PubSub, "wal_transactions", transaction)
Phoenix.PubSub.local_broadcast(Logflare.PubSub, "wal_transactions", transaction)
{:noreply, state}
end

Expand Down

0 comments on commit a76552e

Please sign in to comment.