(&self, request: pb::DropStashRequest)
| 736 | } |
| 737 | |
| 738 | pub fn drop_stash(&self, request: pb::DropStashRequest) -> CliResult<pb::DropStashResponse> { |
| 739 | self.call(move |backend| async move { |
| 740 | match backend { |
| 741 | Backend::Local(state) => { |
| 742 | services::MutationImpl { state } |
| 743 | .drop_stash(Request::new(request)) |
| 744 | .await |
| 745 | .map(|response| response.into_inner()) |
| 746 | } |
| 747 | Backend::Reactor(channel) => { |
| 748 | let mut mutation = |
| 749 | pb::repository_mutation_service_client::RepositoryMutationServiceClient::new(channel); |
| 750 | mutation.drop_stash(request).await.map(|response| response.into_inner()) |
| 751 | } |
| 752 | } |
| 753 | }) |
| 754 | } |
| 755 | |
| 756 | pub fn insert_changes( |
| 757 | &self, |
no test coverage detected