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

Method restore

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

Source from the content-addressed store, hash-verified

658 }
659
660 pub fn restore(&self, request: pb::RestoreRequest) -> CliResult<pb::RestoreResponse> {
661 self.call(move |backend| async move {
662 match backend {
663 Backend::Local(state) => {
664 services::MutationImpl { state }
665 .restore(Request::new(request))
666 .await
667 .map(|response| response.into_inner())
668 }
669 Backend::Reactor(channel) => {
670 let mut mutation =
671 pb::repository_mutation_service_client::RepositoryMutationServiceClient::new(channel);
672 mutation.restore(request).await.map(|response| response.into_inner())
673 }
674 }
675 })
676 }
677
678 pub fn create_stash(
679 &self,

Callers

nothing calls this directly

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected