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

Method unrecord

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

Source from the content-addressed store, hash-verified

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