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

Method unrecord

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

Source from the content-addressed store, hash-verified

642 }
643
644 pub fn unrecord(&self, request: pb::UnrecordRequest) -> CliResult<pb::UnrecordResponse> {
645 self.call(move |backend| async move {
646 match backend {
647 Backend::Local(state) => {
648 services::MutationImpl { state }
649 .unrecord(Request::new(request))
650 .await
651 .map(|response| response.into_inner())
652 }
653 Backend::Reactor(channel) => {
654 let mut mutation =
655 pb::repository_mutation_service_client::RepositoryMutationServiceClient::new(channel);
656 mutation.unrecord(request).await.map(|response| response.into_inner())
657 }
658 }
659 })
660 }
661
662 pub fn restore(&self, request: pb::RestoreRequest) -> CliResult<pb::RestoreResponse> {
663 self.call(move |backend| async move {

Callers 5

unrecordFunction · 0.45
runMethod · 0.45
rollback_insertsFunction · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45