diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rabbit_exchange.erl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rabbit_exchange.erl b/src/rabbit_exchange.erl index 0249155c..55fd5d7e 100644 --- a/src/rabbit_exchange.erl +++ b/src/rabbit_exchange.erl @@ -245,9 +245,7 @@ info_all(VHostPath, Items) -> map(VHostPath, fun (X) -> info(X, Items) end). %% Optimisation route(#exchange{name = #resource{name = <<"">>, virtual_host = VHost}}, #delivery{message = #basic_message{routing_keys = RKs}}) -> - QNames = [rabbit_misc:r(VHost, queue, RK) || RK <- RKs], - lists:usort([QName || #amqqueue{name = QName} - <- rabbit_amqqueue:lookup(QNames)]); + lists:usort([rabbit_misc:r(VHost, queue, RK) || RK <- RKs]); route(X = #exchange{name = XName}, Delivery) -> route1(Delivery, {queue:from_list([X]), XName, []}). |