Use snake_case for Connection etc methods
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
|
||||
#include "server.hpp" // Need this for releaseBackToServer implementation
|
||||
#include "server.hpp" // Need this for release_back_to_server implementation
|
||||
|
||||
// Static thread-local storage for iovec buffer
|
||||
static thread_local std::vector<struct iovec> g_iovec_buffer{IOV_MAX};
|
||||
@@ -35,7 +35,7 @@ Connection::~Connection() {
|
||||
// EINTR ignored - fd is guaranteed closed on Linux
|
||||
}
|
||||
|
||||
void Connection::appendMessage(std::string_view s, bool copy_to_arena) {
|
||||
void Connection::append_message(std::string_view s, bool copy_to_arena) {
|
||||
if (copy_to_arena) {
|
||||
char *arena_str = arena_.allocate<char>(s.size());
|
||||
std::memcpy(arena_str, s.data(), s.size());
|
||||
|
||||
Reference in New Issue
Block a user