Update README.md
This commit is contained in:
parent
e2c7ffdcc1
commit
06afda3606
|
|
@ -860,9 +860,9 @@ auto messageCb = [&channel](const AMQP::Message &message, uint64_t deliveryTag,
|
||||||
|
|
||||||
// start consuming from the queue, and install the callbacks
|
// start consuming from the queue, and install the callbacks
|
||||||
channel.consume("my-queue")
|
channel.consume("my-queue")
|
||||||
|
.onReceived(messageCb)
|
||||||
.onSuccess(startCb)
|
.onSuccess(startCb)
|
||||||
.onError(errorCb)
|
.onError(errorCb);
|
||||||
.onReceived(messageCb);
|
|
||||||
|
|
||||||
````
|
````
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue