refactor(emqx_management): Use emqx:running_node function

This commit is contained in:
ieQu1 2023-04-18 10:24:39 +02:00
parent 282bfee8ff
commit a6688ed07a
1 changed files with 0 additions and 9 deletions

View File

@ -145,12 +145,3 @@ list(get, #{query_string := Qs}) ->
%%%==============================================================================================
%% Internal
running_nodes() ->
Nodes = erlang:nodes([visible, this]),
RpcResults = emqx_proto_v2:are_running(Nodes),
[
Node
|| {Node, IsRunning} <- lists:zip(Nodes, RpcResults),
IsRunning =:= {ok, true}
].