Optimisation

Signed-off-by: JCW <a1q123456@users.noreply.github.com>
This commit is contained in:
JCW
2025-08-29 22:59:53 +01:00
parent dc344e4114
commit 53c0e7cace
12 changed files with 39 additions and 39 deletions

View File

@@ -47,20 +47,20 @@ Logs::Sink::Sink(
}
void
Logs::Sink::write(beast::severities::Severity level, std::string const& text)
Logs::Sink::write(beast::severities::Severity level, std::string&& text)
{
if (level < threshold())
return;
logs_.write(level, partition_, text, console());
logs_.write(level, partition_, std::move(text), console());
}
void
Logs::Sink::writeAlways(
beast::severities::Severity level,
std::string const& text)
std::string&& text)
{
logs_.write(level, partition_, text, console());
logs_.write(level, partition_, std::move(text), console());
}
//------------------------------------------------------------------------------