Skip to content

Commit

Permalink
for test
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Jun 7, 2024
1 parent 9ab3d24 commit 13b6bae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/ylt/coro_io/io_context_pool.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ class io_context_pool {

total_thread_num_ += pool_size;

static auto counter =
ylt::default_metric_manger::create_metric_static<ylt::counter_t>(
"server_total_thread_num", "");
if (counter)
counter->inc(total_thread_num_);
// static auto counter =
// ylt::default_metric_manger::create_metric_static<ylt::counter_t>(
// "server_total_thread_num", "");
// if (counter)
// counter->inc(total_thread_num_);

for (std::size_t i = 0; i < pool_size; ++i) {
io_context_ptr io_context(new asio::io_context(1));
Expand Down

0 comments on commit 13b6bae

Please sign in to comment.