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
commitaf768e5847f3dbfb4c8ae4a648fc59046ea36773 (patch)
treed54b64fcb770d102d4438655d38186e757d737a0
parentc087bab8b9de0d99c7db40c7d786cdb776e44d67 (diff)
downloadrabbitmq-server-bug24729.tar.gz
Fiddle with commentsbug24729
-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 c97832ef..dafb3f2e 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').