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

@@ -53,6 +53,8 @@ protected:
void enter(MccGenericFsmMountErrorEvent& event)
{
enterLog(event);
// event.mount()->logWarn("The mount already in error state!");
auto err = event.eventData();
event.mount()->logError("An error occured: {} [{} {}]", err.message(), err.value(), err.category().name());

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(); });