diff options
author | Matthew Sackman <matthew@rabbitmq.com> | 2011-06-09 16:43:17 +0100 |
---|---|---|
committer | Matthew Sackman <matthew@rabbitmq.com> | 2011-06-09 16:43:17 +0100 |
commit | 5510d8e28617c475104e45c90a076f136c09f103 (patch) | |
tree | d34e86f14b501247929301c09888f041d43160ff | |
parent | 0b376497cd2eebd5c8522076a24b36a147c5ab37 (diff) | |
download | rabbitmq-server-5510d8e28617c475104e45c90a076f136c09f103.tar.gz |
Elimination of trivial and pointless abstraction
-rw-r--r-- | src/rabbit_amqqueue_process.erl | 4 |
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) -> |