summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2011-06-09 16:43:17 +0100
committerMatthew Sackman <matthew@rabbitmq.com>2011-06-09 16:43:17 +0100
commit5510d8e28617c475104e45c90a076f136c09f103 (patch)
treed34e86f14b501247929301c09888f041d43160ff
parent0b376497cd2eebd5c8522076a24b36a147c5ab37 (diff)
downloadrabbitmq-server-5510d8e28617c475104e45c90a076f136c09f103.tar.gz
Elimination of trivial and pointless abstraction
-rw-r--r--src/rabbit_amqqueue_process.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl
index 07a24af8..1e5ad349 100644
--- a/src/rabbit_amqqueue_process.erl
+++ b/src/rabbit_amqqueue_process.erl
@@ -431,9 +431,7 @@ confirm_messages(MsgIds, State = #q{msg_id_to_channel = MTC}) ->
{CMs, MTC0}
end
end, {gb_trees:empty(), MTC}, MsgIds),
- gb_trees_foreach(fun(ChPid, MsgSeqNos) ->
- rabbit_channel:confirm(ChPid, MsgSeqNos)
- end, CMs),
+ gb_trees_foreach(fun rabbit_channel:confirm/2, CMs),
State#q{msg_id_to_channel = MTC1}.
gb_trees_foreach(_, none) ->