summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2012-05-03 18:20:53 +0100
committerSimon MacMullen <simon@rabbitmq.com>2012-05-03 18:20:53 +0100
commit61fb0b9b0e0c631c1aaf0c43cf0b3e1bd39bc5c8 (patch)
treed54b64fcb770d102d4438655d38186e757d737a0
parentfcfabc335acd228b850b7c94b341e19c4fba4ca1 (diff)
downloadrabbitmq-server-git-61fb0b9b0e0c631c1aaf0c43cf0b3e1bd39bc5c8.tar.gz
Fiddle with comments
-rw-r--r--src/rabbit_variable_queue.erl13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/rabbit_variable_queue.erl b/src/rabbit_variable_queue.erl
index c97832efc7..dafb3f2ee7 100644
--- a/src/rabbit_variable_queue.erl
+++ b/src/rabbit_variable_queue.erl
@@ -334,11 +334,12 @@
count :: non_neg_integer(),
end_seq_id :: non_neg_integer() }).
-%% The compiler (rightfully) complains that ack() and state() are unused. For
-%% this reason I added a -spec with the only intent being to remove
-%% warnings. The problem here is that we can't parametrise the BQ behaviour by
-%% these two types as we would like to. We still leave these here for
-%% documentation purposes.
+%% The compiler (rightfully) complains that ack() and state() are
+%% unused. For this reason we duplicate a -spec from
+%% rabbit_backing_queue with the only intent being to remove
+%% warnings. The problem here is that we can't parameterise the BQ
+%% behaviour by these two types as we would like to. We still leave
+%% these here for documentation purposes.
-type(ack() :: seq_id()).
-type(state() :: #vqstate {
q1 :: ?QUEUE:?QUEUE(),
@@ -373,7 +374,7 @@
ack_out_counter :: non_neg_integer(),
ack_in_counter :: non_neg_integer(),
ack_rates :: rates() }).
-%% Dummy -spec
+%% Duplicated from rabbit_backing_queue
-spec(ack/2 :: ([ack()], state()) -> {[rabbit_guid:guid()], state()}).
-spec(multiple_routing_keys/0 :: () -> 'ok').