Skip to content

Commit

Permalink
Merge branch 'async-client'
Browse files Browse the repository at this point in the history
  • Loading branch information
5cript committed Oct 23, 2023
2 parents d76fa5a + 164bd83 commit 5995315
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/roar/client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ namespace Roar
socket,
*buffer_,
context->response.response(),
[weak = weak_from_this(), buffer = this->buffer_, d = std::move(d), timeout, context](
[weak = weak_from_this(), buffer = this->buffer_, d = std::move(d), context](
boost::beast::error_code ec, std::size_t) mutable {
auto self = weak.lock();
if (!self)
Expand Down Expand Up @@ -459,12 +459,12 @@ namespace Roar
withLowerLayerDo([timeout](auto& socket) {
socket.expires_after(timeout);
});
withStreamDo([this, request, &d, timeout](auto& socket) mutable {
withStreamDo([this, request, &d](auto& socket) mutable {
std::shared_ptr<Request<BodyT>> requestPtr = std::make_shared<Request<BodyT>>(std::move(request));
boost::beast::http::async_write(
socket,
*requestPtr,
[weak = weak_from_this(), d = std::move(d), requestPtr, timeout](
[weak = weak_from_this(), d = std::move(d), requestPtr](
boost::beast::error_code ec, std::size_t) mutable {
auto self = weak.lock();
if (!self)
Expand Down

0 comments on commit 5995315

Please sign in to comment.