diff options
| author | Matthew Sackman <matthew@rabbitmq.com> | 2012-04-19 17:03:12 +0100 |
|---|---|---|
| committer | Matthew Sackman <matthew@rabbitmq.com> | 2012-04-19 17:03:12 +0100 |
| commit | 87a49e0734d9e671fa2d755c57495ec7e438b179 (patch) | |
| tree | 2a37994939cd78f87eecee180c7d9b704a8d507a | |
| parent | b7943cc5e5cdbedabd6c989c684cc30abb00a849 (diff) | |
| download | rabbitmq-server-git-87a49e0734d9e671fa2d755c57495ec7e438b179.tar.gz | |
cosmetic
| -rw-r--r-- | src/rabbit_amqqueue_process.erl | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl index 064df26fd7..19333fb917 100644 --- a/src/rabbit_amqqueue_process.erl +++ b/src/rabbit_amqqueue_process.erl @@ -1241,16 +1241,15 @@ handle_cast({reject, AckTags, Requeue, ChPid}, State) -> noreply(subtract_acks( ChPid, AckTags, State, case Requeue of - true -> - fun (State1) -> requeue_and_run(AckTags, State1) end; - false -> - fun (State1 = #q{backing_queue = BQ, - backing_queue_state = BQS}) -> - Fun = dead_letter_fun(rejected, State1), - BQS1 = BQ:fold(Fun, BQS, AckTags), - ack_if_no_dlx( - AckTags, State1#q{backing_queue_state = BQS1}) - end + true -> fun (State1) -> requeue_and_run(AckTags, State1) end; + false -> fun (State1 = #q{backing_queue = BQ, + backing_queue_state = BQS}) -> + Fun = dead_letter_fun(rejected, State1), + BQS1 = BQ:fold(Fun, BQS, AckTags), + ack_if_no_dlx( + AckTags, + State1#q{backing_queue_state = BQS1}) + end end)); handle_cast(delete_immediately, State) -> |
