This commit is contained in:
2025-11-11 18:10:06 +03:00
parent 90acf1ee8c
commit 08ad1e665b
6 changed files with 28 additions and 12 deletions

View File

@@ -44,7 +44,8 @@ int main(int argc, char* argv[])
options.positional_help("[endpoint0] [enpoint1] ... [endpointN]");
options.parse_positional({"endpoints"});
asio::io_context ctx(2);
// asio::io_context ctx(2);
asio::io_context ctx;
try {
@@ -153,7 +154,7 @@ int main(int argc, char* argv[])
}
asio::thread_pool pool(3);
asio::thread_pool pool(5);
asio::post(pool, [&ctx]() { ctx.run(); });