| 640 | } |
| 641 | |
| 642 | pub fn unrecord(&self, request: pb::UnrecordRequest) -> CliResult<pb::UnrecordResponse> { |
| 643 | self.call(move |backend| async move { |
| 644 | match backend { |
| 645 | Backend::Local(state) => { |
| 646 | services::MutationImpl { state } |
| 647 | .unrecord(Request::new(request)) |
| 648 | .await |
| 649 | .map(|response| response.into_inner()) |
| 650 | } |
| 651 | Backend::Reactor(channel) => { |
| 652 | let mut mutation = |
| 653 | pb::repository_mutation_service_client::RepositoryMutationServiceClient::new(channel); |
| 654 | mutation.unrecord(request).await.map(|response| response.into_inner()) |
| 655 | } |
| 656 | } |
| 657 | }) |
| 658 | } |
| 659 | |
| 660 | pub fn restore(&self, request: pb::RestoreRequest) -> CliResult<pb::RestoreResponse> { |
| 661 | self.call(move |backend| async move { |