summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2012-01-20 12:34:21 +0000
committerSimon MacMullen <simon@rabbitmq.com>2012-01-20 12:34:21 +0000
commitc456427a270407d5321ce5d59db578988ca894d8 (patch)
tree65ac298b2ecddc6851ce1c2cb8f69ec7919f5e2f /src
parent9ab3d151291632061f54e8b07f6a58d1f1921961 (diff)
downloadrabbitmq-server-git-c456427a270407d5321ce5d59db578988ca894d8.tar.gz
More doc.
Diffstat (limited to 'src')
-rw-r--r--src/credit_flow.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/credit_flow.erl b/src/credit_flow.erl
index 2913ab1675..cfafd920e2 100644
--- a/src/credit_flow.erl
+++ b/src/credit_flow.erl
@@ -53,6 +53,9 @@
%% variable names are used in credit bookkeeping and want to make
%% sense internally).
+%% For any given pair of processes, ack/2 and send/2 must always be
+%% called with the same credit_spec().
+
ack(To, {MaxCredit, MoreCreditAt}) ->
MoreCreditAt1 = MoreCreditAt + 1,
Credit =