Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Mar 7, 2024
1 parent acc70ff commit 6e15686
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions include/cinatra/ylt/coro_io/coro_io.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <chrono>
#include <deque>

#include "../../cinatra_log_wrapper.hpp"
#include "../util/type_traits.h"
#include "io_context_pool.hpp"

Expand Down Expand Up @@ -436,17 +435,11 @@ class select_t {
async_simple::coro::Lazy<void> 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<Tuple> << ", exception reason: " << ex.what();
throw ex;
}

tuple_switch(result.index(), tuple_, result);
}

Tuple tuple;
Tuple tuple_;
};

std::tuple<async_simple::coro::Lazy<
Expand Down

0 comments on commit 6e15686

Please sign in to comment.