updated bindQueue() example in README (fixes #53)

This commit is contained in:
Emiel Bruijntjes 2016-01-04 10:38:36 +01:00
parent e2ce7103aa
commit c10d246cc8
1 changed files with 2 additions and 2 deletions

View File

@ -172,7 +172,7 @@ AMQP::Channel channel(&connection);
// use the channel object to call the AMQP method you like
channel.declareExchange("my-exchange", AMQP::fanout);
channel.declareQueue("my-queue");
channel.bindQueue("my-exchange", "my-queue");
channel.bindQueue("my-exchange", "my-queue", "my-routing-key");
````
A number of remarks about the example above. First you may have noticed that we've
@ -360,7 +360,7 @@ AMQP::TcpChannel channel(&connection);
// use the channel object to call the AMQP method you like
channel.declareExchange("my-exchange", AMQP::fanout);
channel.declareQueue("my-queue");
channel.bindQueue("my-exchange", "my-queue");
channel.bindQueue("my-exchange", "my-queue", "my-routing-key");
````
EXISTING EVENT LOOPS