From 34ff1cea637b05d98978d5cf624279156d63a02c Mon Sep 17 00:00:00 2001 From: Marcelo Zimbres Date: Sun, 6 Aug 2023 10:02:33 +0200 Subject: [PATCH] Fixes https://github.com/boostorg/redis/issues/121 --- examples/cpp20_streams.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/cpp20_streams.cpp b/examples/cpp20_streams.cpp index f0939756..ae1d0206 100644 --- a/examples/cpp20_streams.cpp +++ b/examples/cpp20_streams.cpp @@ -41,11 +41,11 @@ auto stream_reader(std::shared_ptr conn) -> net::awaitable req.push("XREAD", "BLOCK", "0", "STREAMS", "test-topic", stream_id); co_await conn->async_exec(req, resp, net::deferred); - // std::cout << "Response: "; - // for (int i = 0; i < resp->value().size(); ++i) { - // std::cout << resp->value().at(i).value << ", "; - // } - // std::cout << std::endl; + //std::cout << "Response: "; + //for (auto i = 0UL; i < resp->size(); ++i) { + // std::cout << resp->at(i).value << ", "; + //} + //std::cout << std::endl; // The following approach was taken in order to be able to // deal with the responses, as generated by redis in the case