Skip to content

Commit dd3c356

Browse files
committed
rabbitmq_peer_discovery_common: Use the rabbit_nodes:list_unreachable/0
... instead of using an internal implementation. References #7058.
1 parent cdcbc7e commit dd3c356

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

deps/rabbitmq_peer_discovery_common/src/rabbit_peer_discovery_cleanup.erl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -288,13 +288,7 @@ maybe_remove_nodes([Node | Nodes], false) ->
288288
%%--------------------------------------------------------------------
289289
-spec unreachable_nodes() -> [node()].
290290
unreachable_nodes() ->
291-
Status = rabbit_mnesia:status(),
292-
Nodes = proplists:get_value(nodes, Status, []),
293-
Running = proplists:get_value(running_nodes, Status, []),
294-
All = lists:merge(proplists:get_value(disc, Nodes, []),
295-
proplists:get_value(ram, Nodes, [])),
296-
lists:subtract(All, Running).
297-
291+
rabbit_nodes:list_unreachable().
298292

299293
%%--------------------------------------------------------------------
300294
%% @private

0 commit comments

Comments
 (0)