(
&self,
request: tonic::Request<pb::AutocleanstatusRequest>,
)
| 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, |
nothing calls this directly
no test coverage detected