Skip to content

Commit 84b4081

Browse files
committed
are_running
1 parent 5ad7988 commit 84b4081

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

deps/rabbit/src/rabbit_ra_systems.erl

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
setup/1,
1616
all_ra_systems/0,
1717
is_running/1,
18-
are_running/0,
1918
ensure_ra_system_started/1,
2019
ensure_ra_system_stopped/1,
2120
ensure_started/0,
@@ -61,23 +60,6 @@ is_running(RaSystem) ->
6160
false
6261
end.
6362

64-
-spec are_running() -> AreRunning when
65-
AreRunning :: boolean().
66-
67-
are_running() ->
68-
try
69-
%% FIXME: We hard-code the name of an internal Ra process here.
70-
Children = supervisor:which_children(ra_systems_sup),
71-
lists:all(
72-
fun(RaSystem) ->
73-
is_ra_system_running(Children, RaSystem)
74-
end,
75-
all_ra_systems())
76-
catch
77-
exit:{noproc, _} ->
78-
false
79-
end.
80-
8163
is_ra_system_running(Children, RaSystem) ->
8264
case lists:keyfind(RaSystem, 1, Children) of
8365
{RaSystem, Child, _, _} -> is_pid(Child);

0 commit comments

Comments
 (0)