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

Method insert_changes

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

Source from the content-addressed store, hash-verified

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