summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rabbit_amqqueue_process.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl
index ca77be1e15..abd30a26e0 100644
--- a/src/rabbit_amqqueue_process.erl
+++ b/src/rabbit_amqqueue_process.erl
@@ -445,8 +445,9 @@ annote_confirms_with_channel(Guids, State) ->
group_confirms_by_channel([]) ->
[];
-group_confirms_by_channel([{Ch, Msg} | CMs]) ->
- group_confirms_by_channel(lists:usort(CMs), [{Ch, [Msg]}]).
+group_confirms_by_channel(CMs) ->
+ [{Ch, Msg} | CMs1] = lists:usort(CMs),
+ group_confirms_by_channel(CMs1, [{Ch, [Msg]}]).
group_confirms_by_channel([], Acc) ->
Acc;