summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rabbit_amqqueue_process.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl
index 3dbd2b22..f518c561 100644
--- a/src/rabbit_amqqueue_process.erl
+++ b/src/rabbit_amqqueue_process.erl
@@ -488,12 +488,12 @@ attempt_delivery(#delivery{txn = none,
%% we don't need an expiry here because messages are
%% not being enqueued, so we use an empty
%% message_properties.
+ BP = ?BASE_MESSAGE_PROPERTIES,
{AckTag, BQS1} =
BQ:publish_delivered(
AckRequired, Message,
- ?BASE_MESSAGE_PROPERTIES
- #message_properties{
- needs_confirming = NeedsConfirming},
+ BP#message_properties{
+ needs_confirming = NeedsConfirming},
BQS),
{{Message, false, AckTag}, true,
State1#q{backing_queue_state = BQS1}}