secure_channel: Use counter module for transaction id
This commit is contained in:
parent
97b957742f
commit
4ea72c73b4
11 changed files with 74 additions and 45 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ defmodule SimpleRouter.Openflow.Controller do
|
|||
]
|
||||
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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue