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

Method revise

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

Source from the content-addressed store, hash-verified

775 }
776
777 pub fn revise(&self, request: pb::ReviseRequest) -> CliResult<pb::ReviseResponse> {
778 self.call(move |backend| async move {
779 match backend {
780 Backend::Local(state) => {
781 services::MutationImpl { state }
782 .revise(Request::new(request))
783 .await
784 .map(|response| response.into_inner())
785 }
786 Backend::Reactor(channel) => {
787 let mut mutation =
788 pb::repository_mutation_service_client::RepositoryMutationServiceClient::new(channel);
789 mutation.revise(request).await.map(|response| response.into_inner())
790 }
791 }
792 })
793 }
794}
795
796// ---------------------------------------------------------------------------

Callers 1

reviseFunction · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected