diff options
| author | Francesco Mazzoli <francesco@rabbitmq.com> | 2012-04-24 16:00:56 +0100 |
|---|---|---|
| committer | Francesco Mazzoli <francesco@rabbitmq.com> | 2012-04-24 16:00:56 +0100 |
| commit | f00d2649f4c2efd0686755a7dc265ee678462c4a (patch) | |
| tree | ba2cc9eb46f7946d981795e6a3ff652b8a620283 /src | |
| parent | 2f5cd809a1e3cc743ecc19c0c7f66fb792a9dc16 (diff) | |
| download | rabbitmq-server-git-f00d2649f4c2efd0686755a7dc265ee678462c4a.tar.gz | |
Add comment explaining why ack() and state() exist.
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_variable_queue.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rabbit_variable_queue.erl b/src/rabbit_variable_queue.erl index c346292954..8fc55dbaa5 100644 --- a/src/rabbit_variable_queue.erl +++ b/src/rabbit_variable_queue.erl @@ -324,7 +324,6 @@ -type(timestamp() :: {non_neg_integer(), non_neg_integer(), non_neg_integer()}). -type(seq_id() :: non_neg_integer()). --type(ack() :: seq_id()). -type(rates() :: #rates { egress :: {timestamp(), non_neg_integer()}, ingress :: {timestamp(), non_neg_integer()}, @@ -336,6 +335,10 @@ count :: non_neg_integer(), end_seq_id :: non_neg_integer() }). +%% The compiler (rightfully) complains that ack() and state() are unused. 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. +-type(ack() :: seq_id()). -type(state() :: #vqstate { q1 :: ?QUEUE:?QUEUE(), q2 :: ?QUEUE:?QUEUE(), |
