Skip to content

Commit 1348545

Browse files
authored
revert some code (#671)
1 parent 1bb022e commit 1348545

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

include/ylt/standalone/cinatra/coro_http_client.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ class coro_http_client : public std::enable_shared_from_this<coro_http_client> {
769769
}
770770

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

971-
auto time_guard =
972-
timer_guard(this, conn_timeout_duration_, "request timer");
971+
auto time_guard = timer_guard(this, req_timeout_duration_, "request timer");
973972
std::tie(ec, size) = co_await async_write(asio::buffer(header_str));
974973
if (ec) {
975974
if (socket_->is_timeout_) {

0 commit comments

Comments
 (0)