Skip to content

Commit 6c6bcd0

Browse files
committed
casts to any_adapter
1 parent 3098fca commit 6c6bcd0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

include/boost/redis/detail/health_checker.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <boost/redis/request.hpp>
1212
#include <boost/redis/response.hpp>
1313
#include <boost/redis/operation.hpp>
14+
#include <boost/redis/adapter/any_adapter.hpp>
1415
#include <boost/redis/detail/helper.hpp>
1516
#include <boost/redis/config.hpp>
1617
#include <boost/asio/steady_timer.hpp>
@@ -44,7 +45,7 @@ class ping_op {
4445
}
4546

4647
BOOST_ASIO_CORO_YIELD
47-
conn_->async_exec(checker_->req_, checker_->resp_, std::move(self));
48+
conn_->async_exec(checker_->req_, any_adapter(checker_->resp_), std::move(self));
4849
if (ec || is_cancelled(self)) {
4950
logger_.trace("ping_op: error/cancelled (1).");
5051
checker_->wait_timer_.cancel();

include/boost/redis/detail/runner.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#ifndef BOOST_REDIS_RUNNER_HPP
88
#define BOOST_REDIS_RUNNER_HPP
99

10+
#include <boost/redis/adapter/any_adapter.hpp>
1011
#include <boost/redis/detail/health_checker.hpp>
1112
#include <boost/redis/config.hpp>
1213
#include <boost/redis/response.hpp>
@@ -47,7 +48,7 @@ struct hello_op {
4748
runner_->add_hello();
4849

4950
BOOST_ASIO_CORO_YIELD
50-
conn_->async_exec(runner_->hello_req_, runner_->hello_resp_, std::move(self));
51+
conn_->async_exec(runner_->hello_req_, any_adapter(runner_->hello_resp_), std::move(self));
5152
logger_.on_hello(ec, runner_->hello_resp_);
5253

5354
if (ec || runner_->has_error_in_response() || is_cancelled(self)) {

0 commit comments

Comments
 (0)