diff --git a/include/ylt/coro_rpc/impl/coro_rpc_server.hpp b/include/ylt/coro_rpc/impl/coro_rpc_server.hpp index 527a005b6..9786912e3 100644 --- a/include/ylt/coro_rpc/impl/coro_rpc_server.hpp +++ b/include/ylt/coro_rpc/impl/coro_rpc_server.hpp @@ -131,7 +131,7 @@ class coro_rpc_server_base { } ec = listen(); if (ec == std::errc{}) { - if constexpr (requires(typename server_config::executor_pool_t &pool) { + if constexpr (requires(typename server_config::executor_pool_t & pool) { pool.run(); }) { thd_ = std::thread([this] { diff --git a/include/ylt/coro_rpc/impl/router.hpp b/include/ylt/coro_rpc/impl/router.hpp index 744a5b329..0e85aa96d 100644 --- a/include/ylt/coro_rpc/impl/router.hpp +++ b/include/ylt/coro_rpc/impl/router.hpp @@ -37,8 +37,9 @@ using rpc_context = std::shared_ptr>; namespace protocol { template -concept has_gen_register_key = - requires() { T::template gen_register_key(); }; +concept has_gen_register_key = requires() { + T::template gen_register_key(); +}; template typename map_t = std::unordered_map>