summaryrefslogtreecommitdiff
path: root/src
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
commitad5c975667caeb553a3685357bf35818f9a1b596 (patch)
tree3af411c761b7f0ac9875f046187313dc902cffa9 /src
parent447d6d610c1b96402893d0443ccfdc3c7ef320f5 (diff)
downloadrabbitmq-server-git-ad5c975667caeb553a3685357bf35818f9a1b596.tar.gz
Cosmetics
Diffstat (limited to 'src')
-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 3bf0897b8d..4ab7a2a0b1 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 a96af292a9..9aeb4623f1 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}) ->