Skip to content

Commit

Permalink
Fixed example
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Kochakian committed Jan 28, 2019
1 parent effc217 commit 648cf10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ socket.connect(end_point);
...
Buffer tx_buff, rx_buff;
c.async_write(
tx_buff, "llen", "my-queue" [&](const auto &error_code, auto bytes_transferred) {
tx_buff, r::single_command_t{"llen", "my-queue"}, [&](const auto &error_code, auto bytes_transferred) {
/* tx_buff must be consumed when it is no longer needed */
tx_buff.consume(bytes_transferred);
c.async_read(rx_buff, [&](const auto &error_code, result_t &&r) {
Expand Down

0 comments on commit 648cf10

Please sign in to comment.