style: clang-tidy auto fixes (#2958)

Co-authored-by: godexsoft <385326+godexsoft@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2026-02-23 13:54:07 +00:00
committed by GitHub
parent 2d6f82c27f
commit af736717fc
38 changed files with 138 additions and 72 deletions

View File

@@ -94,10 +94,11 @@ public:
if (type == ContextType::IOContext)
return ContextVariant(std::in_place_type_t<boost::asio::io_context>());
if (type == ContextType::ThreadPool)
if (type == ContextType::ThreadPool) {
return ContextVariant(
std::in_place_type_t<boost::asio::thread_pool>(), kDEFAULT_THREAD_POOL_SIZE
);
}
ASSERT(false, "Unknown new type of context");
std::unreachable();
@@ -395,11 +396,12 @@ TEST_P(ChannelCallbackTest, MultipleSendersOneReceiver)
[self = std::forward<decltype(self)>(self),
&executor,
i](bool success) mutable {
if (success)
if (success) {
boost::asio::post(
executor,
[self = std::move(self), i]() mutable { self(i + 1); }
);
}
}
);
};
@@ -456,11 +458,12 @@ TEST_P(ChannelCallbackTest, MultipleSendersMultipleReceivers)
[self = std::forward<decltype(self)>(self),
&executor,
i](bool success) mutable {
if (success)
if (success) {
boost::asio::post(
executor,
[self = std::move(self), i]() mutable { self(i + 1); }
);
}
}
);
};