| 432 | } |
| 433 | |
| 434 | pub fn list_conflicts( |
| 435 | &self, |
| 436 | request: pb::ListConflictsRequest, |
| 437 | ) -> CliResult<pb::ListConflictsResponse> { |
| 438 | self.call(move |backend| async move { |
| 439 | match backend { |
| 440 | Backend::Local(state) => services::QueryImpl { state } |
| 441 | .list_conflicts(Request::new(request)) |
| 442 | .await |
| 443 | .map(|response| response.into_inner()), |
| 444 | Backend::Reactor(channel) => { |
| 445 | let mut query = |
| 446 | pb::repository_query_service_client::RepositoryQueryServiceClient::new( |
| 447 | channel, |
| 448 | ); |
| 449 | query |
| 450 | .list_conflicts(request) |
| 451 | .await |
| 452 | .map(|response| response.into_inner()) |
| 453 | } |
| 454 | } |
| 455 | }) |
| 456 | } |
| 457 | |
| 458 | pub fn preview_mutation( |
| 459 | &self, |