From bbe604746948bb799fdd496ffb9d49b62ca148b2 Mon Sep 17 00:00:00 2001 From: Alexandru Scvortov Date: Mon, 14 Nov 2011 14:36:35 +0000 Subject: don't remove rejected message before it is confirmed by the DLQ --- include/rabbit_backing_queue_spec.hrl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/rabbit_backing_queue_spec.hrl b/include/rabbit_backing_queue_spec.hrl index 602f598e..1e870bb7 100644 --- a/include/rabbit_backing_queue_spec.hrl +++ b/include/rabbit_backing_queue_spec.hrl @@ -48,14 +48,14 @@ rabbit_types:message_properties(), pid(), state()) -> {undefined, state()}). -spec(drain_confirmed/1 :: (state()) -> {[rabbit_guid:guid()], state()}). --spec(dropwhile/4 :: +-spec(dropwhile/3 :: (fun ((rabbit_types:message_properties()) -> boolean()), - msg_fun(), non_neg_integer(), state()) - -> {non_neg_integer(), state()}). + msg_fun(), state()) + -> state()). -spec(fetch/2 :: (true, state()) -> {fetch_result(ack()), state()}; (false, state()) -> {fetch_result(undefined), state()}). --spec(ack/4 :: ([ack()], msg_fun(), non_neg_integer(), state()) -> - {[rabbit_guid:guid()], non_neg_integer(), state()}). +-spec(ack/3 :: ([ack()], msg_fun(), state()) -> + {[rabbit_guid:guid()], state()}). -spec(requeue/2 :: ([ack()], state()) -> {[rabbit_guid:guid()], state()}). -spec(len/1 :: (state()) -> non_neg_integer()). -- cgit v1.2.1