Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Nov 21, 2023
1 parent 418af8f commit e624047
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/ylt/coro_rpc/impl/coro_rpc_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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] {
Expand Down
5 changes: 3 additions & 2 deletions include/ylt/coro_rpc/impl/router.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ using rpc_context = std::shared_ptr<context_info_t<rpc_protocol>>;

namespace protocol {
template <typename T, auto func>
concept has_gen_register_key =
requires() { T::template gen_register_key<func>(); };
concept has_gen_register_key = requires() {
T::template gen_register_key<func>();
};

template <typename rpc_protocol,
template <typename...> typename map_t = std::unordered_map>
Expand Down

0 comments on commit e624047

Please sign in to comment.