Skip to content

Commit d35fe7c

Browse files
authored
Merge pull request #1669 from noxdafox/priority-info
Handle generic data structures in priority queue info callback
2 parents 7af8fd2 + 000cc32 commit d35fe7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rabbit_priority_queue.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,8 +666,8 @@ cse(_, lazy) -> lazy;
666666
cse(lazy, _) -> lazy;
667667
%% numerical stats
668668
cse(A, B) when is_number(A) -> A + B;
669-
cse({delta, _, _, _, _}, _) -> {delta, todo, todo, todo, todo};
670-
cse(A, B) -> exit({A, B}).
669+
cse({delta, _, _, _, _}, _) -> {delta, todo, todo, todo, todo};
670+
cse(_, _) -> undefined.
671671

672672
%% When asked about 'head_message_timestamp' fro this priority queue, we
673673
%% walk all the backing queues, starting by the highest priority. Once a

0 commit comments

Comments
 (0)