diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2012-05-03 18:20:53 +0100 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2012-05-03 18:20:53 +0100 |
| commit | 61fb0b9b0e0c631c1aaf0c43cf0b3e1bd39bc5c8 (patch) | |
| tree | d54b64fcb770d102d4438655d38186e757d737a0 | |
| parent | fcfabc335acd228b850b7c94b341e19c4fba4ca1 (diff) | |
| download | rabbitmq-server-git-61fb0b9b0e0c631c1aaf0c43cf0b3e1bd39bc5c8.tar.gz | |
Fiddle with comments
| -rw-r--r-- | src/rabbit_variable_queue.erl | 13 |
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'). |
