From 46cfd86981cdb6633bd10bd201e714687f439d26 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Mon, 5 Jan 2026 12:49:56 -0600 Subject: [PATCH] Add catch-all handler for unknown PubSub messages in PollerWorker --- lib/towerops/snmp/poller_worker.ex | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/towerops/snmp/poller_worker.ex b/lib/towerops/snmp/poller_worker.ex index 402aa4d4..952a602b 100644 --- a/lib/towerops/snmp/poller_worker.ex +++ b/lib/towerops/snmp/poller_worker.ex @@ -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)