Skip to content
Snippets Groups Projects

rpc: Implement get-client-status and watch-client-status

Merged Nick Mathewson requested to merge nickm/arti:status_methods into main
Files
8
+ 5
0
@@ -38,6 +38,11 @@ pub(crate) fn launch_rpc_listener<R: Runtime>(
let listener = UnixListener::bind(path)?;
let rpc_mgr =
RpcMgr::new(move |_auth| RpcSession::new_with_client(Arc::new(client.isolated_client())));
// Register methods. Needed since TorClient is generic.
//
// TODO: If we accumulate a large number of generics like this, we should do this elsewhere.
rpc_mgr.register_rpc_methods(TorClient::<R>::rpc_methods());
let rt_clone = runtime.clone();
let rpc_mgr_clone = rpc_mgr.clone();
Loading