diff options
author | Matthew Sackman <matthew@lshift.net> | 2010-04-09 17:55:00 +0100 |
---|---|---|
committer | Matthew Sackman <matthew@lshift.net> | 2010-04-09 17:55:00 +0100 |
commit | 174ab5db4c74703189eb4d0a96c58feb1bce3ef1 (patch) | |
tree | 3dcb802baeb4f75a08ad7b7c6e8ef220fe233c1f | |
parent | c1176bb1d202a2d65cb0c229c58dd538af851384 (diff) | |
download | rabbitmq-server-174ab5db4c74703189eb4d0a96c58feb1bce3ef1.tar.gz |
cosmetics
-rw-r--r-- | include/rabbit.hrl | 3 | ||||
-rw-r--r-- | src/rabbit_channel.erl | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/rabbit.hrl b/include/rabbit.hrl index 81b95c39..0cf6a100 100644 --- a/include/rabbit.hrl +++ b/include/rabbit.hrl @@ -62,7 +62,8 @@ -record(listener, {node, protocol, host, port}). --record(basic_message, {exchange_name, routing_key, content, guid, is_persistent}). +-record(basic_message, {exchange_name, routing_key, content, guid, + is_persistent}). -record(ssl_socket, {tcp, ssl}). -record(delivery, {mandatory, immediate, txn, sender, message}). diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl index 3fe86408..847d4df2 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, |