aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/server/main/session.cpp
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-13 00:01:24 +0200
committerEgor Tensin <egor@tensin.name>2026-06-13 00:01:24 +0200
commit5496c777576624f00e49b2997f4a96bea23517b7 (patch)
tree1e3ab1d620b0875a47620a0ad4e82da9aa88951b /server/main/session.cpp
parentcmake: fix find_package warnings for Boost (diff)
downloadmath-server-5496c777576624f00e49b2997f4a96bea23517b7.tar.gz
math-server-5496c777576624f00e49b2997f4a96bea23517b7.zip
unify my .clang-format files
Diffstat (limited to '')
-rw-r--r--server/main/session.cpp7
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);