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

Method wait

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

Source from the content-addressed store, hash-verified

3352 }
3353
3354 async fn wait(
3355 &self,
3356 request: tonic::Request<pb::WaitRequest>,
3357 ) -> Result<tonic::Response<pb::WaitResponse>, tonic::Status> {
3358 let req = request.into_inner();
3359 let req: requests::WaitRequest = req.try_into()?;
3360 debug!("Client asked for wait");
3361 trace!("wait request: {:?}", req);
3362 let mut rpc = ClnRpc::new(&self.rpc_path)
3363 .await
3364 .map_err(|e| Status::new(Code::Internal, e.to_string()))?;
3365 let result = rpc.call(Request::Wait(req))
3366 .await
3367 .map_err(|e| Status::new(
3368 Code::Unknown,
3369 format!("Error calling method Wait: {:?}", e)))?;
3370 match result {
3371 Response::Wait(r) => {
3372 trace!("wait response: {:?}", r);
3373 Ok(tonic::Response::new(r.into()))
3374 },
3375 r => Err(Status::new(
3376 Code::Internal,
3377 format!(
3378 "Unexpected result {:?} to method call Wait",
3379 r
3380 )
3381 )),
3382 }
3383
3384 }
3385
3386 async fn list_configs(
3387 &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