diff --git a/client/client_connection.hpp b/client/client_connection.hpp index 4b3c4f5c..4f498a0c 100644 --- a/client/client_connection.hpp +++ b/client/client_connection.hpp @@ -61,7 +61,7 @@ public: /// @param value the response message void setValue(std::unique_ptr value) { - boost::asio::post(strand_, [this, self = shared_from_this(), val = std::move(value)]() mutable { + boost::asio::post(strand_, [ this, self = shared_from_this(), val = std::move(value) ]() mutable { timer_.cancel(); if (handler_) handler_({}, std::move(val)); @@ -79,7 +79,7 @@ public: void startTimer(const chronos::usec& timeout) { timer_.expires_after(timeout); - timer_.async_wait(boost::asio::bind_executor(strand_, [this, self = shared_from_this()](boost::system::error_code ec) { + timer_.async_wait(boost::asio::bind_executor(strand_, [ this, self = shared_from_this() ](boost::system::error_code ec) { if (!handler_) return; if (!ec)