Skip to content

Commit 7fa82b3

Browse files
author
Daniil Fedotov
committed
Fix return type of start_vhost
1 parent 0b84490 commit 7fa82b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rabbit_vhost_sup_sup.erl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ init([]) ->
6161
start_on_all_nodes(VHost) ->
6262
NodesStart = [ {Node, start_vhost(VHost, Node)}
6363
|| Node <- rabbit_nodes:all_running() ],
64-
Failures = lists:filter(fun({_, ok}) -> false; (_) -> true end, NodesStart),
64+
Failures = lists:filter(fun({_, {ok, _}}) -> false; (_) -> true end, NodesStart),
6565
case Failures of
6666
[] -> ok;
6767
Errors -> {error, {failed_to_start_vhost_on_nodes, Errors}}
@@ -144,9 +144,9 @@ vhost_sup(VHost) ->
144144
case vhost_sup_pid(VHost) of
145145
no_pid ->
146146
case start_vhost(VHost) of
147-
ok ->
147+
{ok, Pid} ->
148148
true = is_vhost_alive(VHost),
149-
ok;
149+
{ok, Pid};
150150
{error, {no_such_vhost, VHost}} ->
151151
{error, {no_such_vhost, VHost}};
152152
Error ->

0 commit comments

Comments
 (0)