Merge pull request #437 from TonyRoussel/add-message-deduplication-exchange

add x-message-deduplication exchange type
This commit is contained in:
Emiel Bruijntjes 2021-11-23 14:50:56 +01:00 committed by GitHub
commit 04c77b5cff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,8 @@ enum ExchangeType
direct,
topic,
headers,
consistent_hash
consistent_hash,
message_deduplication
};
/**

View File

@ -290,6 +290,7 @@ Deferred &ChannelImpl::declareExchange(const std::string &name, ExchangeType typ
else if (type == ExchangeType::topic) exchangeType = "topic";
else if (type == ExchangeType::headers) exchangeType = "headers";
else if (type == ExchangeType::consistent_hash) exchangeType = "x-consistent-hash";
else if (type == ExchangeType::consistent_hash) exchangeType = "x-message-deduplication";
// the boolean options
bool passive = (flags & AMQP::passive) != 0;