From f8174a443dd985bbf0dac128b21c7d5d84a66499 Mon Sep 17 00:00:00 2001 From: Rob Harrop Date: Wed, 22 Sep 2010 18:37:40 +0100 Subject: reworked how message filtering works with dropwhile --- include/rabbit_backing_queue_spec.hrl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/rabbit_backing_queue_spec.hrl') diff --git a/include/rabbit_backing_queue_spec.hrl b/include/rabbit_backing_queue_spec.hrl index f417c6d9..3e78d571 100644 --- a/include/rabbit_backing_queue_spec.hrl +++ b/include/rabbit_backing_queue_spec.hrl @@ -30,9 +30,8 @@ %% -type(fetch_result() :: - %% Message, MessageProperties, IsDelivered, AckTag, Remaining_Len + %% Message, IsDelivered, AckTag, Remaining_Len ('empty'|{rabbit_types:basic_message(), - rabbit_types:msg_properties(), boolean(), ack(), non_neg_integer()})). -type(is_durable() :: boolean()). @@ -54,6 +53,9 @@ -spec(publish_delivered/4 :: (ack_required(), rabbit_types:basic_message(), rabbit_types:msg_properties(), state()) -> {ack(), state()}). +-spec(dropwhile/2 :: + (fun ((rabbit_types:basic_message(), rabbit_types:msg_properties()) + -> boolean()), state()) -> state()). -spec(fetch/2 :: (ack_required(), state()) -> {fetch_result(), state()}). -spec(ack/2 :: ([ack()], state()) -> state()). -spec(tx_publish/4 :: -- cgit v1.2.1