Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Commit a69599e

Browse files
Merge pull request #283 from noxdafox/master
rabbit_backing_queue: extend is_duplicate callback return values
2 parents e6b3d1f + dded559 commit a69599e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rabbit_backing_queue.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,9 @@
255255

256256
%% Called prior to a publish or publish_delivered call. Allows the BQ
257257
%% to signal that it's already seen this message, (e.g. it was published
258-
%% or discarded previously) and thus the message should be dropped.
258+
%% or discarded previously) specifying whether to drop the message or reject it.
259259
-callback is_duplicate(rabbit_types:basic_message(), state())
260-
-> {boolean(), state()}.
260+
-> {{true, drop} | {true, reject} | boolean(), state()}.
261261

262262
-callback set_queue_mode(queue_mode(), state()) -> state().
263263

0 commit comments

Comments
 (0)