From 6e15686b69ebcace272e4c4ac453f2155538e883 Mon Sep 17 00:00:00 2001 From: qicosmos Date: Thu, 7 Mar 2024 08:09:11 +0800 Subject: [PATCH] update --- include/cinatra/ylt/coro_io/coro_io.hpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/include/cinatra/ylt/coro_io/coro_io.hpp b/include/cinatra/ylt/coro_io/coro_io.hpp index 6de1a357..a2610202 100644 --- a/include/cinatra/ylt/coro_io/coro_io.hpp +++ b/include/cinatra/ylt/coro_io/coro_io.hpp @@ -22,7 +22,6 @@ #include #include -#include "../../cinatra_log_wrapper.hpp" #include "../util/type_traits.h" #include "io_context_pool.hpp" @@ -436,17 +435,11 @@ class select_t { async_simple::coro::Lazy operator()(auto &&...tests) { auto result = co_await async_simple::coro::collectAny(std::move(tests)...); - try { - tuple_switch(result.index(), tuple, result); - } catch (std::exception &ex) { - CINATRA_LOG_WARNING - << "index: " << result.index() << ", size: " - << std::tuple_size_v << ", exception reason: " << ex.what(); - throw ex; - } + + tuple_switch(result.index(), tuple_, result); } - Tuple tuple; + Tuple tuple_; }; std::tuple