(
&self,
request: tonic::Request<pb::HelpRequest>,
)
| 3448 | } |
| 3449 | |
| 3450 | async fn help( |
| 3451 | &self, |
| 3452 | request: tonic::Request<pb::HelpRequest>, |
| 3453 | ) -> Result<tonic::Response<pb::HelpResponse>, tonic::Status> { |
| 3454 | let req = request.into_inner(); |
| 3455 | let req: requests::HelpRequest = req.try_into()?; |
| 3456 | debug!("Client asked for help"); |
| 3457 | trace!("help request: {:?}", req); |
| 3458 | let mut rpc = ClnRpc::new(&self.rpc_path) |
| 3459 | .await |
| 3460 | .map_err(|e| Status::new(Code::Internal, e.to_string()))?; |
| 3461 | let result = rpc.call(Request::Help(req)) |
| 3462 | .await |
| 3463 | .map_err(|e| Status::new( |
| 3464 | Code::Unknown, |
| 3465 | format!("Error calling method Help: {:?}", e)))?; |
| 3466 | match result { |
| 3467 | Response::Help(r) => { |
| 3468 | trace!("help response: {:?}", r); |
| 3469 | Ok(tonic::Response::new(r.into())) |
| 3470 | }, |
| 3471 | r => Err(Status::new( |
| 3472 | Code::Internal, |
| 3473 | format!( |
| 3474 | "Unexpected result {:?} to method call Help", |
| 3475 | r |
| 3476 | ) |
| 3477 | )), |
| 3478 | } |
| 3479 | |
| 3480 | } |
| 3481 | |
| 3482 | async fn pre_approve_keysend( |
| 3483 | &self, |
nothing calls this directly
no test coverage detected