diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2012-04-11 16:19:58 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2012-04-11 16:19:58 +0100 |
commit | 3b17fb1733c03815651d840f79615762e1e041c7 (patch) | |
tree | d28b29610f37717f690f7a0bacee4e67038f0864 /src | |
parent | e9e81c2ad6f1b2ab7418190ab5c297363871e975 (diff) | |
download | rabbitmq-server-3b17fb1733c03815651d840f79615762e1e041c7.tar.gz |
Matthias points out that we don't need to lookup here; we will lookup later anyway...
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, []}). |