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

Method in_sync

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

Create an empty delta (everything is in sync).

()

Source from the content-addressed store, hash-verified

312impl RemoteDelta {
313 /// Create an empty delta (everything is in sync).
314 pub fn in_sync() -> Self {
315 Self {
316 to_download: Vec::new(),
317 ours_ge_dichotomy: Vec::new(),
318 ours_ge_dichotomy_set: HashSet::new(),
319 theirs_ge_dichotomy: Vec::new(),
320 theirs_ge_dichotomy_set: HashSet::new(),
321 remote_unrecords: Vec::new(),
322 divergence_point: 0,
323 }
324 }
325
326 /// Convert this delta into a `PullDelta`.
327 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected