tres/message_handler: Fix to use DynamicSupervisor instead of :simple_one_for_one

This commit is contained in:
Eishun Kondoh 2018-05-02 16:22:31 +09:00
parent 6bba512271
commit a316bf2416
6 changed files with 10 additions and 11 deletions

View file

@ -5,7 +5,7 @@ defmodule LeaderExample.Leader do
require Logger
def start_link(datapath_id, args) do
def start_link([datapath_id, args]) do
:locks_leader.start_link(__MODULE__, [datapath_id, args], [])
end

View file

@ -22,7 +22,7 @@ defmodule LearningSwitch.Ofctl do
]
end
def start_link(datapath_id, args) do
def start_link([datapath_id, args]) do
GenServer.start_link(__MODULE__, [datapath_id, args])
end

View file

@ -26,7 +26,7 @@ defmodule PatchPanel.Openflow.Controller do
end
end
def start_link({datapath_id, _aux_id}, _start_args) do
def start_link([{datapath_id, _aux_id}, _start_args]) do
GenServer.start_link(__MODULE__, [datapath_id])
end