summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Hood <0x6e6562@gmail.com>2008-10-16 14:02:06 +0100
committerBen Hood <0x6e6562@gmail.com>2008-10-16 14:02:06 +0100
commit9b70165c57cf373592e34964917a78f91a8b148c (patch)
treeb138964290ba1d86464caff8648092114e023734
parent66cb76796d1fa1171bbf2907f27687a27e171b74 (diff)
downloadrabbitmq-server-9b70165c57cf373592e34964917a78f91a8b148c.tar.gz
Fixed QA remarks
-rw-r--r--src/rabbit_channel.erl11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index 0bad01f8..7cec5f86 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -582,8 +582,8 @@ handle_method(#'queue.unbind'{queue = QueueNameBin,
routing_key = RoutingKey,
arguments = Arguments}, _, State) ->
binding_action(fun rabbit_amqqueue:delete_binding/4, ExchangeNameBin,
- QueueNameBin, RoutingKey, Arguments,
- #'queue.unbind_ok'{}, State);
+ QueueNameBin, RoutingKey, Arguments, #'queue.unbind_ok'{},
+ false, State);
handle_method(#'queue.purge'{queue = QueueNameBin,
nowait = NoWait},
@@ -626,11 +626,6 @@ handle_method(_MethodRecord, _Content, _State) ->
%%----------------------------------------------------------------------------
binding_action(Fun, ExchangeNameBin, QueueNameBin, RoutingKey, Arguments,
- ReturnMethod, State) ->
- binding_action(Fun, ExchangeNameBin, QueueNameBin, RoutingKey, Arguments,
- ReturnMethod, false, State).
-
-binding_action(Fun, ExchangeNameBin, QueueNameBin, RoutingKey, Arguments,
ReturnMethod, NoWait, State = #ch{virtual_host = VHostPath}) ->
%% FIXME: connection exception (!) on failure??
%% (see rule named "failure" in spec-XML)
@@ -649,7 +644,7 @@ binding_action(Fun, ExchangeNameBin, QueueNameBin, RoutingKey, Arguments,
not_found, "no ~s", [rabbit_misc:rs(ExchangeName)]);
{error, binding_not_found} ->
rabbit_misc:protocol_error(
- not_found, "no binding ~s between exhange ~s and queue ~s",
+ not_found, "no binding ~s between ~s and ~s",
[RoutingKey, rabbit_misc:rs(ExchangeName),
rabbit_misc:rs(QueueName)]);
{error, durability_settings_incompatible} ->