Skip to content

Commit

Permalink
Remove unused heartbeat handle_info (#1891)
Browse files Browse the repository at this point in the history
`"connection:heartbeat"` is sent to the
`"device:#{result.identifier}:internal"` topic, but the `DeviceChannel`
doesn't subscribe to this topic.
  • Loading branch information
joshk authored Feb 6, 2025
1 parent b6c085f commit 18677d0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/nerves_hub_web/channels/device_channel.ex
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,6 @@ defmodule NervesHubWeb.DeviceChannel do
end
end

def handle_info(%Broadcast{event: "connection:heartbeat"}, socket) do
# Expected message that is not used here :)
{:noreply, socket}
end

def handle_info(msg, socket) do
# Ignore unhandled messages so that it doesn't crash the link process
# preventing cascading problems.
Expand Down

0 comments on commit 18677d0

Please sign in to comment.