...
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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(); });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user