Merge pull request #342 from basanets/edit_readme_PublisherConfirms

Fixed the typo in the Readme.MD file
This commit is contained in:
Emiel Bruijntjes 2020-07-27 09:41:19 +02:00 committed by GitHub
commit c783cbc17e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -1091,17 +1091,17 @@ channel.confirmSelect().onSuccess([&]() {
// from this moment onwards ack/nack confirmations are coming in
channel.publish("my-exchange", "my-key", "my first message");
// message counter is now 1, will call onAck/onNack with deliverTag=1
// message counter is now 1, will call onAck/onNack with deliveryTag=1
channel.publish("my-exchange", "my-key", "my second message");
// message counter is now 2, will call onAck/onNack with deliverTag=2
// message counter is now 2, will call onAck/onNack with deliveryTag=2
}).onAck([&](uint64_t deliverTag, bool multiple) {
// deliverTag is message number
// multiple is set to true, if all messages UP TO deliverTag have been processed
}).onAck([&](uint64_t deliveryTag, bool multiple) {
// deliveryTag is message number
// multiple is set to true, if all messages UP TO deliveryTag have been processed
}).onNack([&](uint64 deliveryTag, bool multiple, bool requeue) {
// deliverTag is message number
// multiple is set to true, if all messages UP TO deliverTag have not been processed
// deliveryTag is message number
// multiple is set to true, if all messages UP TO deliveryTag have not been processed
// requeue is to be ignored
});