From 21a5b8c3103b37e8cbc16992eb005694aa798e5e Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Thu, 12 Sep 2024 11:26:46 +0300 Subject: [PATCH] http/client: Restore indentation of client::do_make_request overload Signed-off-by: Pavel Emelyanov --- src/http/client.cc | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/http/client.cc b/src/http/client.cc index c240a05ba7..4bf71aa613 100644 --- a/src/http/client.cc +++ b/src/http/client.cc @@ -313,29 +313,29 @@ future<> client::do_make_request(request req, reply_handler handle, abort_source co_await do_make_request(con, req, handle, as, expected); }), as); } catch (const std::system_error& ex) { - if (as && as->abort_requested()) { - std::rethrow_exception(as->abort_requested_exception_ptr()); - } + if (as && as->abort_requested()) { + std::rethrow_exception(as->abort_requested_exception_ptr()); + } - if (!_retry) { - throw; - } + if (!_retry) { + throw; + } - auto code = ex.code().value(); - if ((code != EPIPE) && (code != ECONNABORTED)) { - throw; - } + auto code = ex.code().value(); + if ((code != EPIPE) && (code != ECONNABORTED)) { + throw; + } - retry_with_new = true; + retry_with_new = true; } if (retry_with_new) { - // The 'con' connection may not yet be freed, so the total connection - // count still account for it and with_new_connection() may temporarily - // break the limit. That's OK, the 'con' will be closed really soon - co_await with_new_connection(coroutine::lambda([this, &req, &handle, as, expected] (connection& con) -> future<> { - co_await do_make_request(con, req, handle, as, expected); - }), as); + // The 'con' connection may not yet be freed, so the total connection + // count still account for it and with_new_connection() may temporarily + // break the limit. That's OK, the 'con' will be closed really soon + co_await with_new_connection(coroutine::lambda([this, &req, &handle, as, expected] (connection& con) -> future<> { + co_await do_make_request(con, req, handle, as, expected); + }), as); } }