summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@lshift.net>2010-04-09 18:32:09 +0100
committerMatthew Sackman <matthew@lshift.net>2010-04-09 18:32:09 +0100
commit72427e1da09811b8710930cc4b636ae1b5da7abc (patch)
tree3af411c761b7f0ac9875f046187313dc902cffa9
parent45b7eb101b32bda813948c5ba2059ea755ef5bbf (diff)
downloadrabbitmq-server-bug22603.tar.gz
Cosmeticsbug22603
-rw-r--r--src/rabbit_basic.erl4
-rw-r--r--src/rabbit_channel.erl4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/rabbit_basic.erl b/src/rabbit_basic.erl
index 3bf0897b..4ab7a2a0 100644
--- a/src/rabbit_basic.erl
+++ b/src/rabbit_basic.erl
@@ -100,12 +100,12 @@ message(ExchangeName, RoutingKeyBin, RawProperties, BodyBin) ->
case is_message_persistent(Content) of
{invalid, Other} ->
{error, {invalid_delivery_mode, Other}};
- Boolean when is_boolean(Boolean) ->
+ IsPersistent when is_boolean(IsPersistent) ->
#basic_message{exchange_name = ExchangeName,
routing_key = RoutingKeyBin,
content = Content,
guid = rabbit_guid:guid(),
- is_persistent = Boolean}
+ is_persistent = IsPersistent}
end.
properties(P = #'P_basic'{}) ->
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index a96af292..9aeb4623 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -1018,8 +1018,8 @@ is_message_persistent(Content) ->
"treating as 1, non-persistent~n",
[Other]),
false;
- Boolean when is_boolean(Boolean) ->
- Boolean
+ IsPersistent when is_boolean(IsPersistent) ->
+ IsPersistent
end.
lock_message(true, MsgStruct, State = #ch{unacked_message_q = UAMQ}) ->