summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2010-06-14 12:32:11 +0100
committerSimon MacMullen <simon@rabbitmq.com>2010-06-14 12:32:11 +0100
commit11150fac886584c2c6ac8fc45c088c5a1ffdfcca (patch)
treece4e92ec41d55b2b65ba41ecb642419617b7d955
parent47fd76339d10ce82c431dcbd1293bd9eb2d8cbfc (diff)
downloadrabbitmq-server-git-11150fac886584c2c6ac8fc45c088c5a1ffdfcca.tar.gz
Clarify comment.
-rw-r--r--src/rabbit_channel.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index 76a500cedc..f4434ade9c 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -525,9 +525,9 @@ handle_method(#'basic.consume'{queue = QueueNameBin,
Other -> Other
end,
- %% In order to ensure that the consume_ok gets sent before
- %% any messages are sent to the consumer, we get the queue
- %% process to send the consume_ok on our behalf.
+ %% We get the queue process to send the consume_ok on our
+ %% behalf. This is for symmetry with basic.cancel - see
+ %% the comment in that method for why.
case with_exclusive_access_or_die(
QueueName, ReaderPid,
fun (Q) ->