From 2270f0ba953e85883f9bc0745e2d1201bccffed1 Mon Sep 17 00:00:00 2001 From: Thomas Vincent-Sweet Date: Fri, 24 Jun 2016 12:57:26 +0100 Subject: [PATCH] No need to set message ID to 0 by default. Let exchange handle that if we don't specify. --- src/qamqpexchange.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/qamqpexchange.cpp b/src/qamqpexchange.cpp index 2653d2e..e723c81 100644 --- a/src/qamqpexchange.cpp +++ b/src/qamqpexchange.cpp @@ -321,7 +321,6 @@ void QAmqpExchange::publish(const QByteArray &message, const QString &routingKey content.setProperty(QAmqpMessage::ContentType, mimeType); content.setProperty(QAmqpMessage::ContentEncoding, "utf-8"); content.setProperty(QAmqpMessage::Headers, headers); - content.setProperty(QAmqpMessage::MessageId, "0"); QAmqpMessage::PropertyHash::ConstIterator it; QAmqpMessage::PropertyHash::ConstIterator itEnd = properties.constEnd();