fix: add handle_info/2 for distributed_packet messages in PacketDistributor
This commit is contained in:
parent
1edfd1d418
commit
ab29a3dca5
1 changed files with 6 additions and 0 deletions
|
|
@ -37,6 +37,12 @@ defmodule Aprsme.Cluster.PacketDistributor do
|
|||
:ok
|
||||
end
|
||||
|
||||
@impl true
|
||||
def handle_info({:distributed_packet, _packet} = msg, state) do
|
||||
handle_distributed_packet(msg)
|
||||
{:noreply, state}
|
||||
end
|
||||
|
||||
@impl true
|
||||
def init(_opts) do
|
||||
Phoenix.PubSub.subscribe(Aprsme.PubSub, @pubsub_topic)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue