diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2010-12-08 10:48:57 +0000 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2010-12-08 10:48:57 +0000 |
| commit | 31cfc20bf6158c0cf21afd4bbb896e3f2204ba0a (patch) | |
| tree | 10642a0493011c08366d5e95452c0e050764d899 /src | |
| parent | 94059ac94682624d5edd6092a7b9bfd48b15b836 (diff) | |
| download | rabbitmq-server-git-31cfc20bf6158c0cf21afd4bbb896e3f2204ba0a.tar.gz | |
Cosmetic
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_channel.erl | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl index 11342c60e5..9f1f29747f 100644 --- a/src/rabbit_channel.erl +++ b/src/rabbit_channel.erl @@ -1294,12 +1294,9 @@ i(number, #ch{channel = Channel}) -> Channel; i(user, #ch{username = Username}) -> Username; i(vhost, #ch{virtual_host = VHost}) -> VHost; i(transactional, #ch{transaction_id = TxnKey}) -> TxnKey =/= none; -i(confirm, #ch{confirm_enabled = CE, - confirm_multiple = CM}) -> case {CE, CM} of - {false, _} -> none; - {_, false} -> single; - {_, true} -> multiple - end; +i(confirm, #ch{confirm_enabled = false}) -> none; +i(confirm, #ch{confirm_multiple = false}) -> single; +i(confirm, _) -> multiple; i(consumer_count, #ch{consumer_mapping = ConsumerMapping}) -> dict:size(ConsumerMapping); i(unconfirmed, #ch{unconfirmed = UC}) -> |
