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 | 29fcb934aae22257c38ffbb8a20834e180f628f4 (patch) | |
tree | 0928ae48e99dc7c084e5b20d9250ae450f367a6d | |
parent | 6be969542911167c767b4298c98c7a31ce505138 (diff) | |
download | rabbitmq-server-29fcb934aae22257c38ffbb8a20834e180f628f4.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 91bdf826..9397905f 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. |