(
&self,
request: pb::InsertChangesRequest,
)
| 754 | } |
| 755 | |
| 756 | pub fn insert_changes( |
| 757 | &self, |
| 758 | request: pb::InsertChangesRequest, |
| 759 | ) -> CliResult<pb::InsertChangesResponse> { |
| 760 | self.call(move |backend| async move { |
| 761 | match backend { |
| 762 | Backend::Local(state) => { |
| 763 | services::MutationImpl { state } |
| 764 | .insert_changes(Request::new(request)) |
| 765 | .await |
| 766 | .map(|response| response.into_inner()) |
| 767 | } |
| 768 | Backend::Reactor(channel) => { |
| 769 | let mut mutation = |
| 770 | pb::repository_mutation_service_client::RepositoryMutationServiceClient::new(channel); |
| 771 | mutation.insert_changes(request).await.map(|response| response.into_inner()) |
| 772 | } |
| 773 | } |
| 774 | }) |
| 775 | } |
| 776 | |
| 777 | pub fn revise(&self, request: pb::ReviseRequest) -> CliResult<pb::ReviseResponse> { |
| 778 | self.call(move |backend| async move { |
no test coverage detected