refactor(emqx_management): Use emqx:running_node function
This commit is contained in:
parent
282bfee8ff
commit
a6688ed07a
|
@ -145,12 +145,3 @@ list(get, #{query_string := Qs}) ->
|
||||||
|
|
||||||
%%%==============================================================================================
|
%%%==============================================================================================
|
||||||
%% Internal
|
%% 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}
|
|
||||||
].
|
|
||||||
|
|
Loading…
Reference in New Issue