diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2012-11-23 15:09:28 +0000 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2012-11-23 15:09:28 +0000 |
commit | ba1fadc5a1c9f4d8cb1e537bfed1365d1e6bbf37 (patch) | |
tree | 58eb004e8b25bfadc864666829eea6584f7a94d2 | |
parent | e6b612d8265e81363cee4152c54aa4b0354380af (diff) | |
download | rabbitmq-server-ba1fadc5a1c9f4d8cb1e537bfed1365d1e6bbf37.tar.gz |
more precise signature
-rw-r--r-- | src/rabbit_backing_queue.erl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rabbit_backing_queue.erl b/src/rabbit_backing_queue.erl index e9c014be..2fc10bb2 100644 --- a/src/rabbit_backing_queue.erl +++ b/src/rabbit_backing_queue.erl @@ -23,7 +23,6 @@ %% We can't specify a per-queue ack/state with callback signatures -type(ack() :: any()). -type(state() :: any()). --type(acc() :: any()). -type(msg_ids() :: [rabbit_types:msg_id()]). -type(fetch_result(Ack) :: @@ -162,8 +161,8 @@ %% Fold over all the messages in a queue and return the accumulated %% results, leaving the queue undisturbed. --callback fold(fun((rabbit_types:basic_message(), acc()) -> acc()), - acc(), state()) -> {acc(), state()}. +-callback fold(fun((rabbit_types:basic_message(), A) -> A), A, state()) + -> {A, state()}. %% How long is my queue? -callback len(state()) -> non_neg_integer(). |