diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-13 00:01:24 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-13 00:01:24 +0200 |
| commit | 5496c777576624f00e49b2997f4a96bea23517b7 (patch) | |
| tree | 1e3ab1d620b0875a47620a0ad4e82da9aa88951b /server/main/session.cpp | |
| parent | cmake: fix find_package warnings for Boost (diff) | |
| download | math-server-5496c777576624f00e49b2997f4a96bea23517b7.tar.gz math-server-5496c777576624f00e49b2997f4a96bea23517b7.zip | |
unify my .clang-format files
Diffstat (limited to '')
| -rw-r--r-- | server/main/session.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/server/main/session.cpp b/server/main/session.cpp index 8a6bb13..6d615ff 100644 --- a/server/main/session.cpp +++ b/server/main/session.cpp @@ -69,7 +69,9 @@ void Session::read() { // Stop at LF boost::asio::async_read_until( - m_socket, m_buffer, '\n', + m_socket, + m_buffer, + '\n', boost::asio::bind_executor( m_strand, [this, self](const boost::system::error_code& ec, std::size_t bytes) { handle_read(ec, bytes); @@ -101,7 +103,8 @@ void Session::write(const std::string& output) { os << output << "\r\n"; boost::asio::async_write( - m_socket, m_buffer, + m_socket, + m_buffer, boost::asio::bind_executor( m_strand, [this, self](const boost::system::error_code& ec, std::size_t bytes) { handle_write(ec, bytes); |
