Skip to content

Commit d6a19bb

Browse files
noxdafoxmichaelklishin
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 1f7a27c)
1 parent 0eb65c2 commit d6a19bb

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
@@ -105,7 +105,7 @@
105105

106106
%% Called to inform the BQ about messages which have reached the
107107
%% queue, but are not going to be further passed to BQ.
108-
-callback discard(rabbit_types:msg_id(), pid(), state()) -> state().
108+
-callback discard(rabbit_types:basic_message(), pid(), state()) -> state().
109109

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

0 commit comments

Comments
 (0)