Skip to content

Commit

Permalink
revert some code (#671)
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos authored Apr 28, 2024
1 parent 1bb022e commit 1348545
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions include/ylt/standalone/cinatra/coro_http_client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ class coro_http_client : public std::enable_shared_from_this<coro_http_client> {
}

auto time_out_guard =
timer_guard(this, conn_timeout_duration_, "request timer");
timer_guard(this, req_timeout_duration_, "request timer");
std::tie(ec, size) = co_await async_write(asio::buffer(header_str));
#ifdef INJECT_FOR_HTTP_CLIENT_TEST
if (inject_write_failed == ClientInjectAction::write_failed) {
Expand Down Expand Up @@ -968,8 +968,7 @@ class coro_http_client : public std::enable_shared_from_this<coro_http_client> {
}
}

auto time_guard =
timer_guard(this, conn_timeout_duration_, "request timer");
auto time_guard = timer_guard(this, req_timeout_duration_, "request timer");
std::tie(ec, size) = co_await async_write(asio::buffer(header_str));
if (ec) {
if (socket_->is_timeout_) {
Expand Down

0 comments on commit 1348545

Please sign in to comment.