Skip to content

Commit

Permalink
[coro_rpc] add get_io_context_pool() for server (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
poor-circle authored Jul 8, 2023
1 parent 3188923 commit a50c4e1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions include/ylt/coro_rpc/impl/coro_rpc_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,7 @@ class coro_rpc_server_base {
router_.template register_handler<func>(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() {
Expand Down

0 comments on commit a50c4e1

Please sign in to comment.