missing =0 on flags

This commit is contained in:
Michael van der Werve 2020-10-21 14:56:03 +02:00
parent fbbf4c17f4
commit e09f043f4b
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ public:
* @param size size of the message
* @param flags optional flags
*/
DeferredPublish &publish(const std::string &exchange, const std::string &routingKey, const Envelope &envelope, int flags)
DeferredPublish &publish(const std::string &exchange, const std::string &routingKey, const Envelope &envelope, int flags = 0)
{
// publish the entire thing, and remember if it failed at any point
uint64_t tag = BASE::publish(exchange, routingKey, envelope, flags);