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

Method push_changes

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

Source from the content-addressed store, hash-verified

1808 }
1809
1810 pub fn push_changes(
1811 &self,
1812 request: pb::PushChangesRequest,
1813 ) -> CliResult<pb::PushChangesResponse> {
1814 self.call(move |backend| async move {
1815 match backend {
1816 Backend::Local(state) => services_sync::SyncImpl { state }
1817 .push_changes(Request::new(request))
1818 .await
1819 .map(|response| response.into_inner()),
1820 Backend::Reactor(channel) => {
1821 let mut sync = pb::sync_service_client::SyncServiceClient::new(channel);
1822 sync.push_changes(request)
1823 .await
1824 .map(|response| response.into_inner())
1825 }
1826 }
1827 })
1828 }
1829
1830 pub fn pull_changes(
1831 &self,

Callers 1

pushFunction · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected