(&self, request: pb::GetChangeRequest)
| 361 | } |
| 362 | |
| 363 | pub fn get_change(&self, request: pb::GetChangeRequest) -> CliResult<pb::GetChangeResponse> { |
| 364 | self.call(move |backend| async move { |
| 365 | match backend { |
| 366 | Backend::Local(state) => services::QueryImpl { state } |
| 367 | .get_change(Request::new(request)) |
| 368 | .await |
| 369 | .map(|response| response.into_inner()), |
| 370 | Backend::Reactor(channel) => { |
| 371 | let mut query = |
| 372 | pb::repository_query_service_client::RepositoryQueryServiceClient::new( |
| 373 | channel, |
| 374 | ); |
| 375 | query |
| 376 | .get_change(request) |
| 377 | .await |
| 378 | .map(|response| response.into_inner()) |
| 379 | } |
| 380 | } |
| 381 | }) |
| 382 | } |
| 383 | |
| 384 | /// DiffWorkingCopy, collected: both backends stream; the CLI renders |
| 385 | /// the whole listing. |
no test coverage detected