[clang-tidy fixes & reformating] Successful connection using Connect() overload for proxy
All checks were successful
PR Check / on-push-commit-check (push) Successful in 12m10s

This commit is contained in:
sectapunterx 2024-11-23 23:25:51 +03:00
parent 20e31808ba
commit 7d6b783fe5

View file

@ -423,10 +423,6 @@ struct ClientCreateVisitor {
boost::asio::use_awaitable); boost::asio::use_awaitable);
} }
auto Connect(auto& socket, boost::asio::ip::tcp::resolver::results_type resolveResults) -> boost::asio::awaitable<void> {
co_await boost::asio::async_connect(socket, resolveResults, boost::asio::use_awaitable);
}
template <typename Socket> template <typename Socket>
auto Connect(Socket& socket) -> boost::asio::awaitable<void> { auto Connect(Socket& socket) -> boost::asio::awaitable<void> {
if(!std::holds_alternative<NoProxy>(this->options.proxy)) { if(!std::holds_alternative<NoProxy>(this->options.proxy)) {