(
&self,
request: tonic::Request<pb::DelpayRequest>,
)
| 1749 | } |
| 1750 | |
| 1751 | async fn del_pay( |
| 1752 | &self, |
| 1753 | request: tonic::Request<pb::DelpayRequest>, |
| 1754 | ) -> Result<tonic::Response<pb::DelpayResponse>, tonic::Status> { |
| 1755 | let req = request.into_inner(); |
| 1756 | let req: requests::DelpayRequest = req.try_into()?; |
| 1757 | debug!("Client asked for del_pay"); |
| 1758 | trace!("del_pay request: {:?}", req); |
| 1759 | let mut rpc = ClnRpc::new(&self.rpc_path) |
| 1760 | .await |
| 1761 | .map_err(|e| Status::new(Code::Internal, e.to_string()))?; |
| 1762 | let result = rpc.call(Request::DelPay(req)) |
| 1763 | .await |
| 1764 | .map_err(|e| Status::new( |
| 1765 | Code::Unknown, |
| 1766 | format!("Error calling method DelPay: {:?}", e)))?; |
| 1767 | match result { |
| 1768 | Response::DelPay(r) => { |
| 1769 | trace!("del_pay response: {:?}", r); |
| 1770 | Ok(tonic::Response::new(r.into())) |
| 1771 | }, |
| 1772 | r => Err(Status::new( |
| 1773 | Code::Internal, |
| 1774 | format!( |
| 1775 | "Unexpected result {:?} to method call DelPay", |
| 1776 | r |
| 1777 | ) |
| 1778 | )), |
| 1779 | } |
| 1780 | |
| 1781 | } |
| 1782 | |
| 1783 | async fn del_forward( |
| 1784 | &self, |
nothing calls this directly
no test coverage detected