diff options
| author | Jonathan Robie <jonathan@apache.org> | 2008-12-08 18:43:34 +0000 |
|---|---|---|
| committer | Jonathan Robie <jonathan@apache.org> | 2008-12-08 18:43:34 +0000 |
| commit | 43412acd5823c580eb31d2a5729848968021c691 (patch) | |
| tree | 79d0c485563b143e93784d168305b536921f84e5 /qpid/cpp/examples/request-response/client.cpp | |
| parent | cabb462f98a87f245a1204b007d237f07b9e2065 (diff) | |
| download | qpid-python-43412acd5823c580eb31d2a5729848968021c691.tar.gz | |
Removed a cast to asynch sessions for message transfer in client.
It was not needed, and disagreed with the tutorial.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@724442 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/examples/request-response/client.cpp')
| -rw-r--r-- | qpid/cpp/examples/request-response/client.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/qpid/cpp/examples/request-response/client.cpp b/qpid/cpp/examples/request-response/client.cpp index a71a6368b0..b1f8d0b587 100644 --- a/qpid/cpp/examples/request-response/client.cpp +++ b/qpid/cpp/examples/request-response/client.cpp @@ -144,9 +144,7 @@ int main(int argc, char** argv) { for (int i=0; i<4; i++) { request.setData(s[i]); - // Asynchronous transfer sends messages as quickly as - // possible without waiting for confirmation. - async(session).messageTransfer(arg::content=request, arg::destination="amq.direct"); + session.messageTransfer(arg::content=request, arg::destination="amq.direct"); std::cout << "Request: " << s[i] << std::endl; } |
