Skip to content

Commit

Permalink
Be const corect
Browse files Browse the repository at this point in the history
  • Loading branch information
ClausKlein committed Dec 2, 2024
1 parent 6d549f2 commit f921cc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asio/module/tests/main.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ inline void fail(error_code ec, char const* what)
inline net::awaitable<void> do_session(tcp::socket client_sock)
{
char buff [4096] {};
auto ex = co_await net::this_coro::executor;
// TODO(CK): Not used? const auto ex = co_await net::this_coro::executor;

ssl::context ctx {ssl::context::tls_client};
ssl::stream<tcp::socket> stream {std::move(client_sock), ctx};
Expand All @@ -55,7 +55,7 @@ inline net::awaitable<void> do_session(tcp::socket client_sock)

inline net::awaitable<void> do_listen()
{
auto ex = co_await net::this_coro::executor;
const auto ex = co_await net::this_coro::executor;
error_code ec;
tcp::endpoint endpoint {net::ip::address_v4::loopback(), 3000};

Expand Down

0 comments on commit f921cc2

Please sign in to comment.