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

Method new

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

Create a new sync engine.

(remote: &'a HttpRemote, cache: &'a mut RemoteState)

Source from the content-addressed store, hash-verified

452impl<'a> SyncEngine<'a> {
453 /// Create a new sync engine.
454 pub fn new(remote: &'a HttpRemote, cache: &'a mut RemoteState) -> Self {
455 Self {
456 remote,
457 cache,
458 stats: SyncStats::default(),
459 }
460 }
461
462 /// Get the stats from the last sync operation.
463 pub fn stats(&self) -> &SyncStats {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected