2
0
mirror of https://github.com/boostorg/redis.git synced 2026-02-08 23:12:14 +00:00

More refactoring.

This commit is contained in:
Marcelo Zimbres
2021-10-09 22:38:58 +02:00
parent 9cdb107ef5
commit 62e34767ca
9 changed files with 120 additions and 103 deletions

View File

@@ -30,12 +30,12 @@ example(net::ip::tcp::socket& socket,
resp3::consumer cs;
for (;;) {
auto const t = co_await cs.async_consume(socket, requests, resp, net::use_awaitable);
resp.clear();
co_await cs.async_consume(socket, requests, resp, net::use_awaitable);
std::cout << resp << std::endl;
if (t == resp3::type::push) {
if (resp.get_type() == resp3::type::push)
continue;
}
auto const id = requests.front().ids.front();