From a50c4e1e0ef0b8ce0414a2e12ae57d64d2f06878 Mon Sep 17 00:00:00 2001 From: saipubw Date: Sat, 8 Jul 2023 18:01:03 +0800 Subject: [PATCH] [coro_rpc] add get_io_context_pool() for server (#357) --- include/ylt/coro_rpc/impl/coro_rpc_server.hpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/include/ylt/coro_rpc/impl/coro_rpc_server.hpp b/include/ylt/coro_rpc/impl/coro_rpc_server.hpp index e36654ce0..9c6831d6f 100644 --- a/include/ylt/coro_rpc/impl/coro_rpc_server.hpp +++ b/include/ylt/coro_rpc/impl/coro_rpc_server.hpp @@ -297,12 +297,7 @@ class coro_rpc_server_base { router_.template register_handler(key); } - /*! - * Remove registered RPC function - * @tparam func the address of RPC function. e.g. `&foo::bar`, `foobar` - * @return true, if the function existed and removed success. otherwise, - * false. - */ + auto &get_io_context_pool() noexcept { return pool_; } private: std::errc listen() {