MCPcopy Create free account
hub / github.com/ElementsProject/lightning / del_pay

Method del_pay

cln-grpc/src/server.rs:1751–1781  ·  view source on GitHub ↗
(
        &self,
        request: tonic::Request<pb::DelpayRequest>,
    )

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 3

into_innerMethod · 0.80
to_stringMethod · 0.45
callMethod · 0.45

Tested by

no test coverage detected