🎨 style(core): normalize lifecycle implementation

This commit is contained in:
csh
2026-07-14 12:08:09 +08:00
parent 12e1a87b2b
commit 5a02bd10f9
3 changed files with 38 additions and 46 deletions
+5 -6
View File
@@ -45,10 +45,9 @@ export namespace lsp::core
public:
ExecutionContext(scheduler::async_executor::AsyncExecutor& scheduler,
manager::ManagerHub& manager_hub,
std::stop_token stop_token = {})
: async_executor_(scheduler),
manager_hub_(manager_hub),
stop_token_(stop_token)
std::stop_token stop_token = {}) : async_executor_(scheduler),
manager_hub_(manager_hub),
stop_token_(stop_token)
{
}
@@ -120,8 +119,8 @@ namespace lsp::core
{
RequestDispatcher::RequestDispatcher(
scheduler::async_executor::AsyncExecutor& scheduler,
manager::ManagerHub& manager_hub)
: async_executor_(scheduler), manager_hub_(manager_hub)
manager::ManagerHub& manager_hub) : async_executor_(scheduler),
manager_hub_(manager_hub)
{
}