summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rabbit_vm.erl9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/rabbit_vm.erl b/src/rabbit_vm.erl
index 4146eeb447..4f160defbb 100644
--- a/src/rabbit_vm.erl
+++ b/src/rabbit_vm.erl
@@ -134,11 +134,10 @@ interesting_sups0() ->
PluginProcs = plugin_sups(),
[MsgIndexProcs, MgmtDbProcs, PluginProcs].
-%% @todo I have doubts about this ssl_connection_sup and the
-%% amqp_sup. They don't seem to exist anywhere.
-%% @todo We probably need to put the equivalent process here
-%% (the one our Ranch supervisor is under).
-conn_sups() -> [ssl_connection_sup, amqp_sup].
+conn_sups() ->
+ Ranches = lists:flatten(ets:match(ranch_server, {{conns_sup, '_'}, '$1'})),
+ [amqp_sup|Ranches].
+
conn_sups(With) -> [{Sup, With} || Sup <- conn_sups()].
distinguishers() -> [{rabbit_amqqueue_sup_sup, fun queue_type/1} |