diff options
Diffstat (limited to 'cpp/examples/examples/request-response/client.cpp')
-rw-r--r-- | cpp/examples/examples/request-response/client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/examples/examples/request-response/client.cpp b/cpp/examples/examples/request-response/client.cpp index 9f82bd9d9e..8cec16a461 100644 --- a/cpp/examples/examples/request-response/client.cpp +++ b/cpp/examples/examples/request-response/client.cpp @@ -128,7 +128,7 @@ int main(int argc, char** argv) { // Use the name of the response queue as the routing key session.queueDeclare(arg::queue=response_queue.str()); - session.queueBind(arg::exchange="amq.direct", arg::queue=response_queue.str(), arg::routingKey=response_queue.str()); + session.exchangeBind(arg::exchange="amq.direct", arg::queue=response_queue.str(), arg::bindingKey=response_queue.str()); // Create a listener for the response queue and start listening. |