diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-13 19:23:10 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-13 19:23:10 +0200 |
| commit | 880e8c45c5621ed8432b74a0cf4f212b9c14aade (patch) | |
| tree | aa13bb1cc8d64db07b51c859b3277f1cdc855876 /server/main/server.cpp | |
| parent | get rid of functionality removed in newer Boost (diff) | |
| download | math-server-880e8c45c5621ed8432b74a0cf4f212b9c14aade.tar.gz math-server-880e8c45c5621ed8432b74a0cf4f212b9c14aade.zip | |
finally, perfect .clang-format settings?
Diffstat (limited to 'server/main/server.cpp')
| -rw-r--r-- | server/main/server.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/server/main/server.cpp b/server/main/server.cpp index b27c551..4c0ab83 100644 --- a/server/main/server.cpp +++ b/server/main/server.cpp @@ -68,8 +68,9 @@ void Server::wait_for_signal() { m_signals.add(SIGINT); m_signals.add(SIGTERM); - m_signals.async_wait( - [this](const boost::system::error_code& ec, int signo) { handle_signal(ec, signo); }); + m_signals.async_wait([this](const boost::system::error_code& ec, int signo) { + handle_signal(ec, signo); + }); } catch (const boost::system::system_error& e) { throw Error{e.what()}; } @@ -94,7 +95,8 @@ void Server::accept() { const auto session = m_session_mgr.make_session(m_io_context); m_acceptor.async_accept( session->socket(), - [session, this](const boost::system::error_code& ec) { handle_accept(session, ec); }); + [session, this](const boost::system::error_code& ec) { handle_accept(session, ec); } + ); } void Server::handle_accept(SessionPtr session, const boost::system::error_code& ec) { |
