Add catch-all handler for unknown PubSub messages in PollerWorker
This commit is contained in:
parent
8f7ed19d34
commit
46cfd86981
1 changed files with 6 additions and 0 deletions
|
|
@ -78,6 +78,12 @@ defmodule Towerops.Snmp.PollerWorker do
|
|||
{:noreply, state}
|
||||
end
|
||||
|
||||
@impl true
|
||||
def handle_info(_msg, state) do
|
||||
# Ignore other messages (like equipment status changes)
|
||||
{:noreply, state}
|
||||
end
|
||||
|
||||
@impl true
|
||||
def handle_cast(:poll_now, state) do
|
||||
_ = perform_poll(state.equipment_id)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue