MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / insert_changes

Method insert_changes

atomic-cli/src/service/mod.rs:756–775  ·  view source on GitHub ↗
(
        &self,
        request: pb::InsertChangesRequest,
    )

Source from the content-addressed store, hash-verified

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 {

Callers 1

insert_rpcFunction · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected