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

Method pull_changes

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

Source from the content-addressed store, hash-verified

1828 }
1829
1830 pub fn pull_changes(
1831 &self,
1832 request: pb::PullChangesRequest,
1833 ) -> CliResult<pb::PullChangesResponse> {
1834 self.call(move |backend| async move {
1835 match backend {
1836 Backend::Local(state) => services_sync::SyncImpl { state }
1837 .pull_changes(Request::new(request))
1838 .await
1839 .map(|response| response.into_inner()),
1840 Backend::Reactor(channel) => {
1841 let mut sync = pb::sync_service_client::SyncServiceClient::new(channel);
1842 sync.pull_changes(request)
1843 .await
1844 .map(|response| response.into_inner())
1845 }
1846 }
1847 })
1848 }
1849}
1850
1851// ---------------------------------------------------------------------------

Callers 1

pullFunction · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected