tres/message_handler_sup: Removed disconnected message

This commit is contained in:
Eishun Kondoh 2018-06-06 20:16:17 +09:00
parent dfba6b5326
commit bc4e18a411

View file

@ -36,13 +36,6 @@ defmodule Tres.ExampleHandler do
{:noreply, state} {:noreply, state}
end end
def handle_info({:switch_disconnected, reason}, state) do
:ok =
warn("[#{__MODULE__}] Switch Disconnected: datapath_id: #{state.datapath_id} by #{reason}")
{:stop, :normal, state}
end
def handle_info({:switch_hang, _datapath_id}, state) do def handle_info({:switch_hang, _datapath_id}, state) do
:ok = warn("[#{__MODULE__}] Switch possible hang: datapath_id: #{state.datapath_id}") :ok = warn("[#{__MODULE__}] Switch possible hang: datapath_id: #{state.datapath_id}")
{:noreply, state} {:noreply, state}