summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rabbit_exchange.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rabbit_exchange.erl b/src/rabbit_exchange.erl
index 7188511a35..f4cab8daaa 100644
--- a/src/rabbit_exchange.erl
+++ b/src/rabbit_exchange.erl
@@ -250,9 +250,7 @@ delete_routes(QueueName) ->
ok = mnesia:delete_object(ReverseRoute),
ok = mnesia:delete_object(durable_routes, Route, write).
-% TODO: Don't really like this double lookup
-% It seems very clunky
-% Can this get refactored to to avoid the duplication of the lookup/1 function?
+% TODO: Don't really like this double lookup, it *seems* very clunky
call_with_exchange_and_queue(#binding{exchange_name = Exchange,
queue_name = Queue}, Fun) ->
case mnesia:wread({exchange, Exchange}) of