summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2012-04-12 13:06:57 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2012-04-12 13:06:57 +0100
commit0b13fab6a6e10587b73ecc88806f4a04e37f10ed (patch)
tree77f7957a03e639d676228d4fbd9336f87869d207
parent7364c36eafecb10b1fb7503952f4169d4a5cbe38 (diff)
downloadrabbitmq-server-0b13fab6a6e10587b73ecc88806f4a04e37f10ed.tar.gz
tiny space saving refactor
-rw-r--r--src/rabbit_channel.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index 0c1c11d8..0e4f3693 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -758,9 +758,7 @@ handle_method(#'basic.cancel'{consumer_tag = ConsumerTag,
fun () -> {error, not_found} end,
fun () ->
rabbit_amqqueue:basic_cancel(
- Q, self(), ConsumerTag,
- ok_msg(NoWait, #'basic.cancel_ok'{
- consumer_tag = ConsumerTag}))
+ Q, self(), ConsumerTag, ok_msg(NoWait, OkMsg))
end) of
ok ->
{noreply, NewState};