(
&self,
request: tonic::Request<pb::DisableinvoicerequestRequest>,
)
| 915 | } |
| 916 | |
| 917 | async fn disable_invoice_request( |
| 918 | &self, |
| 919 | request: tonic::Request<pb::DisableinvoicerequestRequest>, |
| 920 | ) -> Result<tonic::Response<pb::DisableinvoicerequestResponse>, tonic::Status> { |
| 921 | let req = request.into_inner(); |
| 922 | let req: requests::DisableinvoicerequestRequest = req.try_into()?; |
| 923 | debug!("Client asked for disable_invoice_request"); |
| 924 | trace!("disable_invoice_request request: {:?}", req); |
| 925 | let mut rpc = ClnRpc::new(&self.rpc_path) |
| 926 | .await |
| 927 | .map_err(|e| Status::new(Code::Internal, e.to_string()))?; |
| 928 | let result = rpc.call(Request::DisableInvoiceRequest(req)) |
| 929 | .await |
| 930 | .map_err(|e| Status::new( |
| 931 | Code::Unknown, |
| 932 | format!("Error calling method DisableInvoiceRequest: {:?}", e)))?; |
| 933 | match result { |
| 934 | Response::DisableInvoiceRequest(r) => { |
| 935 | trace!("disable_invoice_request response: {:?}", r); |
| 936 | Ok(tonic::Response::new(r.into())) |
| 937 | }, |
| 938 | r => Err(Status::new( |
| 939 | Code::Internal, |
| 940 | format!( |
| 941 | "Unexpected result {:?} to method call DisableInvoiceRequest", |
| 942 | r |
| 943 | ) |
| 944 | )), |
| 945 | } |
| 946 | |
| 947 | } |
| 948 | |
| 949 | async fn list_invoice_requests( |
| 950 | &self, |
nothing calls this directly
no test coverage detected