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

Method auto_clean_status

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

Source from the content-addressed store, hash-verified

339 }
340
341 async fn auto_clean_status(
342 &self,
343 request: tonic::Request<pb::AutocleanstatusRequest>,
344 ) -> Result<tonic::Response<pb::AutocleanstatusResponse>, tonic::Status> {
345 let req = request.into_inner();
346 let req: requests::AutocleanstatusRequest = req.into();
347 debug!("Client asked for auto_clean_status");
348 trace!("auto_clean_status request: {:?}", req);
349 let mut rpc = ClnRpc::new(&self.rpc_path)
350 .await
351 .map_err(|e| Status::new(Code::Internal, e.to_string()))?;
352 let result = rpc.call(Request::AutoCleanStatus(req))
353 .await
354 .map_err(|e| Status::new(
355 Code::Unknown,
356 format!("Error calling method AutoCleanStatus: {:?}", e)))?;
357 match result {
358 Response::AutoCleanStatus(r) => {
359 trace!("auto_clean_status response: {:?}", r);
360 Ok(tonic::Response::new(r.into()))
361 },
362 r => Err(Status::new(
363 Code::Internal,
364 format!(
365 "Unexpected result {:?} to method call AutoCleanStatus",
366 r
367 )
368 )),
369 }
370
371 }
372
373 async fn check_message(
374 &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