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

Method compute_pull_delta

atomic-remote/src/sync.rs:737–745  ·  view source on GitHub ↗

Compute a pull delta for a given view. This is a convenience method that runs `compute_delta` and converts the result into a `PullDelta`.

(
        &mut self,
        view: &str,
        local_hashes: &HashSet<String>,
    )

Source from the content-addressed store, hash-verified

735 /// This is a convenience method that runs `compute_delta` and converts
736 /// the result into a `PullDelta`.
737 pub async fn compute_pull_delta(
738 &mut self,
739 view: &str,
740 local_hashes: &HashSet<String>,
741 ) -> RemoteResult<PullDelta> {
742 let remote_state = self.remote.get_state(view).await?;
743 let delta = self.compute_delta(view, local_hashes).await?;
744 Ok(delta.into_pull_delta(Some(remote_state)))
745 }
746
747 /// Compute a push delta for a given view.
748 ///

Callers

nothing calls this directly

Calls 3

compute_deltaMethod · 0.80
into_pull_deltaMethod · 0.80
get_stateMethod · 0.45

Tested by

no test coverage detected