Skip to content

Commit 21a5b8c

Browse files
committed
http/client: Restore indentation of client::do_make_request overload
Signed-off-by: Pavel Emelyanov <[email protected]>
1 parent 93d72e6 commit 21a5b8c

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

Diff for: src/http/client.cc

+17-17
Original file line numberDiff line numberDiff line change
@@ -313,29 +313,29 @@ future<> client::do_make_request(request req, reply_handler handle, abort_source
313313
co_await do_make_request(con, req, handle, as, expected);
314314
}), as);
315315
} catch (const std::system_error& ex) {
316-
if (as && as->abort_requested()) {
317-
std::rethrow_exception(as->abort_requested_exception_ptr());
318-
}
316+
if (as && as->abort_requested()) {
317+
std::rethrow_exception(as->abort_requested_exception_ptr());
318+
}
319319

320-
if (!_retry) {
321-
throw;
322-
}
320+
if (!_retry) {
321+
throw;
322+
}
323323

324-
auto code = ex.code().value();
325-
if ((code != EPIPE) && (code != ECONNABORTED)) {
326-
throw;
327-
}
324+
auto code = ex.code().value();
325+
if ((code != EPIPE) && (code != ECONNABORTED)) {
326+
throw;
327+
}
328328

329-
retry_with_new = true;
329+
retry_with_new = true;
330330
}
331331

332332
if (retry_with_new) {
333-
// The 'con' connection may not yet be freed, so the total connection
334-
// count still account for it and with_new_connection() may temporarily
335-
// break the limit. That's OK, the 'con' will be closed really soon
336-
co_await with_new_connection(coroutine::lambda([this, &req, &handle, as, expected] (connection& con) -> future<> {
337-
co_await do_make_request(con, req, handle, as, expected);
338-
}), as);
333+
// The 'con' connection may not yet be freed, so the total connection
334+
// count still account for it and with_new_connection() may temporarily
335+
// break the limit. That's OK, the 'con' will be closed really soon
336+
co_await with_new_connection(coroutine::lambda([this, &req, &handle, as, expected] (connection& con) -> future<> {
337+
co_await do_make_request(con, req, handle, as, expected);
338+
}), as);
339339
}
340340
}
341341

0 commit comments

Comments
 (0)