Skip to content

Commit c09a70a

Browse files
noxdafoxmergify[bot]
authored andcommitted
rabbit_backing_queue: pass the whole message to discard callback
The previous behaviour was passing solely the message ID making queue implementations such as, for example, the priority one hard to fulfil. Signed-off-by: Matteo Cafasso <[email protected]> (cherry picked from commit 7c9169f)
1 parent d01cdf7 commit c09a70a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/rabbit/src/rabbit_backing_queue.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117

118118
%% Called to inform the BQ about messages which have reached the
119119
%% queue, but are not going to be further passed to BQ.
120-
-callback discard(rabbit_types:msg_id(), pid(), flow(), state()) -> state().
120+
-callback discard(rabbit_types:basic_message(), pid(), flow(), state()) -> state().
121121

122122
%% Return ids of messages which have been confirmed since the last
123123
%% invocation of this function (or initialisation).

0 commit comments

Comments
 (0)