summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2011-05-23 10:20:08 +0100
committerSimon MacMullen <simon@rabbitmq.com>2011-05-23 10:20:08 +0100
commit5549ba745328cbf5ebb3b479198cb3dfe09b74d6 (patch)
tree0928ae48e99dc7c084e5b20d9250ae450f367a6d
parentbd042236936bef579a54184e2266ddf608cb6941 (diff)
downloadrabbitmq-server-git-5549ba745328cbf5ebb3b479198cb3dfe09b74d6.tar.gz
Actually use the exchange we have. Not very scientifically measured, but this seems to knock about 1s off the time to to "time MulticastMain -x 2 -y 0 -z 30" with tracing on (from ~82s to ~81s for me).
-rw-r--r--src/rabbit_basic.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rabbit_basic.erl b/src/rabbit_basic.erl
index 91bdf82636..9397905f28 100644
--- a/src/rabbit_basic.erl
+++ b/src/rabbit_basic.erl
@@ -169,10 +169,10 @@ publish(Exchange, RoutingKeyBin, Mandatory, Immediate, Txn, Properties,
BodyBin) ->
case exchange(Exchange) of
X = #exchange{} ->
- publish(delivery(Mandatory, Immediate, Txn,
- message(X#exchange.name, RoutingKeyBin,
- properties(Properties), BodyBin),
- undefined));
+ publish(X, delivery(Mandatory, Immediate, Txn,
+ message(X#exchange.name, RoutingKeyBin,
+ properties(Properties), BodyBin),
+ undefined));
_ ->
{ok, unroutable, []}
end.