Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviogrossi committed Jan 8, 2024
1 parent 29a0dcb commit 34e38a9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/pgd_supervisor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -854,8 +854,12 @@ defmodule PgdSupervisor do
Distribution.member_for_child(state.scope, child_id)

case assigned_supervisor do
nil -> {:reply, {:error, :remote_supervisor_not_found}, state}
pid when pid == self() -> start_local_child(child, state)
nil ->
{:reply, {:error, :remote_supervisor_not_found}, state}

pid when pid == self() ->
start_local_child(child, state)

_ ->
child
|> start_remote_child({assigned_node, assigned_supervisor}, state)
Expand Down

0 comments on commit 34e38a9

Please sign in to comment.