summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@lshift.net>2010-04-09 17:55:00 +0100
committerMatthew Sackman <matthew@lshift.net>2010-04-09 17:55:00 +0100
commit3dd129490755235c6261b38ce39c614a64f1212c (patch)
tree3dcb802baeb4f75a08ad7b7c6e8ef220fe233c1f /src
parentd06575e9af21adcf7c5e74d4d2bd11a115e6ee3e (diff)
downloadrabbitmq-server-git-3dd129490755235c6261b38ce39c614a64f1212c.tar.gz
cosmetics
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_channel.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index 3fe8640866..847d4df22c 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -383,11 +383,12 @@ handle_method(#'basic.publish'{exchange = ExchangeNameBin,
%% We decode the content's properties here because we're almost
%% certain to want to look at delivery-mode and priority.
DecodedContent = rabbit_binary_parser:ensure_content_decoded(Content),
+ IsPersistent = is_message_persistent(DecodedContent),
Message = #basic_message{exchange_name = ExchangeName,
routing_key = RoutingKey,
content = DecodedContent,
guid = rabbit_guid:guid(),
- is_persistent = is_message_persistent(DecodedContent)},
+ is_persistent = IsPersistent},
{RoutingRes, DeliveredQPids} =
rabbit_exchange:publish(
Exchange,