(
&self,
request: tonic::Request<pb::StaticbackupRequest>,
)
| 3544 | } |
| 3545 | |
| 3546 | async fn static_backup( |
| 3547 | &self, |
| 3548 | request: tonic::Request<pb::StaticbackupRequest>, |
| 3549 | ) -> Result<tonic::Response<pb::StaticbackupResponse>, tonic::Status> { |
| 3550 | let req = request.into_inner(); |
| 3551 | let req: requests::StaticbackupRequest = req.try_into()?; |
| 3552 | debug!("Client asked for static_backup"); |
| 3553 | trace!("static_backup request: {:?}", req); |
| 3554 | let mut rpc = ClnRpc::new(&self.rpc_path) |
| 3555 | .await |
| 3556 | .map_err(|e| Status::new(Code::Internal, e.to_string()))?; |
| 3557 | let result = rpc.call(Request::StaticBackup(req)) |
| 3558 | .await |
| 3559 | .map_err(|e| Status::new( |
| 3560 | Code::Unknown, |
| 3561 | format!("Error calling method StaticBackup: {:?}", e)))?; |
| 3562 | match result { |
| 3563 | Response::StaticBackup(r) => { |
| 3564 | trace!("static_backup response: {:?}", r); |
| 3565 | Ok(tonic::Response::new(r.into())) |
| 3566 | }, |
| 3567 | r => Err(Status::new( |
| 3568 | Code::Internal, |
| 3569 | format!( |
| 3570 | "Unexpected result {:?} to method call StaticBackup", |
| 3571 | r |
| 3572 | ) |
| 3573 | )), |
| 3574 | } |
| 3575 | |
| 3576 | } |
| 3577 | |
| 3578 | async fn bkpr_channels_apy( |
| 3579 | &self, |
nothing calls this directly
no test coverage detected