refactor: integrate shared io_context across all services
This commit is contained in:
parent
2d35fd6c8b
commit
c306c4233a
4 changed files with 11 additions and 5 deletions
|
|
@ -32,7 +32,7 @@ int main() {
|
|||
return 1;
|
||||
}
|
||||
|
||||
NetworkService server(port, threadCount);
|
||||
NetworkService server(main_context, port, threadCount);
|
||||
server.Run();
|
||||
|
||||
boost::asio::signal_set signals(main_context, SIGINT, SIGTERM);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue