| 58 | } |
| 59 | |
| 60 | bool register_remote_command_rpc() |
| 61 | { |
| 62 | rpc_request_handler cb = [](dsn::message_ex *msg) { |
| 63 | auto rpc = remote_command_rpc::auto_reply(msg); |
| 64 | command_manager::instance().run_command( |
| 65 | rpc.request().cmd, rpc.request().arguments, rpc.response()); |
| 66 | }; |
| 67 | |
| 68 | return dsn_rpc_register_handler(RPC_CLI_CLI_CALL, "call", cb); |
| 69 | } |
| 70 | |
| 71 | } // namespace cmd |
| 72 | } // namespace dist |
no test coverage detected