Skip to content

Commit c867fe2

Browse files
noxdafoxmergify[bot]
authored andcommitted
backing_queue: simplify is_duplicate callback signature
`is_duplicate` callback signature was changed in order to support both the mirroring queues as well as the de-duplication ones. As the mirroring queues are now deprecated and removed, we can fall back to a simpler boolean as return value. Signed-off-by: Matteo Cafasso <[email protected]> (cherry picked from commit c927446) (cherry picked from commit 6a6e760)
1 parent ebfeab8 commit c867fe2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

deps/rabbit/src/rabbit_backing_queue.erl

+2-3
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,8 @@
220220

221221
%% Called prior to a publish or publish_delivered call. Allows the BQ
222222
%% to signal that it's already seen this message, (e.g. it was published
223-
%% or discarded previously) specifying whether to drop the message or reject it.
224-
-callback is_duplicate(mc:state(), state())
225-
-> {{true, drop} | {true, reject} | boolean(), state()}.
223+
%% or discarded previously).
224+
-callback is_duplicate(mc:state(), state()) -> {boolean(), state()}.
226225

227226
-callback set_queue_mode(queue_mode(), state()) -> state().
228227

0 commit comments

Comments
 (0)