Add catch-all handler for unknown PubSub messages in PollerWorker

This commit is contained in:
Graham McIntire 2026-01-05 12:49:56 -06:00
parent 8f7ed19d34
commit 46cfd86981
No known key found for this signature in database

View file

@ -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)