Skip to content

Commit

Permalink
Remove add_registration call in start_pid_remotely
Browse files Browse the repository at this point in the history
  • Loading branch information
d-b committed Mar 29, 2021
1 parent 7dd08d6 commit 558dc22
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/swarm/tracker/tracker.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1352,9 +1352,10 @@ defmodule Swarm.Tracker do
"#{inspect(name)} already registered to #{inspect(pid)} on #{node(pid)}, registering locally"
)

# register named process that is unknown locally
add_registration({name, pid, meta}, from, state)
:ok
case from do
nil -> :ok
_ -> GenStateMachine.reply(from, {:ok, pid})
end

{:error, {:noproc, _}} = err ->
warn(
Expand Down

0 comments on commit 558dc22

Please sign in to comment.