tres/switch_registry: Fix undef error
This commit is contained in:
parent
910c6ee255
commit
f7a21ae9b1
2 changed files with 2 additions and 1 deletions
BIN
bin/enum_gen
BIN
bin/enum_gen
Binary file not shown.
|
|
@ -9,6 +9,7 @@ defmodule Tres.SwitchRegistry do
|
||||||
case Registry.register(Tres.HandlerRegistry, datapath_id, pid) do
|
case Registry.register(Tres.HandlerRegistry, datapath_id, pid) do
|
||||||
{:ok, _owner} ->
|
{:ok, _owner} ->
|
||||||
:ok
|
:ok
|
||||||
|
|
||||||
{:error, {:already_registered, _owner}} ->
|
{:error, {:already_registered, _owner}} ->
|
||||||
:ok
|
:ok
|
||||||
end
|
end
|
||||||
|
|
@ -22,7 +23,7 @@ defmodule Tres.SwitchRegistry do
|
||||||
end
|
end
|
||||||
|
|
||||||
def lookup_handler_pid(datapath_id) when is_binary(datapath_id),
|
def lookup_handler_pid(datapath_id) when is_binary(datapath_id),
|
||||||
do: lookup_handler({datapath_id, 0})
|
do: lookup_handler_pid({datapath_id, 0})
|
||||||
|
|
||||||
# For Datapath
|
# For Datapath
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue