diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2011-05-23 10:20:08 +0100 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2011-05-23 10:20:08 +0100 |
| commit | 5549ba745328cbf5ebb3b479198cb3dfe09b74d6 (patch) | |
| tree | 0928ae48e99dc7c084e5b20d9250ae450f367a6d | |
| parent | bd042236936bef579a54184e2266ddf608cb6941 (diff) | |
| download | rabbitmq-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.erl | 8 |
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. |
