MCPcopy Create free account
hub / github.com/ActivityWatch/aw-server-rust / sync_datastores

Function sync_datastores

aw-sync/src/sync.rs:238–294  ·  view source on GitHub ↗

Syncs all buckets from `ds_from` to `ds_to` with `-synced` appended to the ID of the destination bucket. is_push: a bool indicating if we're pushing local buckets to the sync dir (as opposed to pulling from remotes) src_did: source device ID

(
    ds_from: &dyn AccessMethod,
    ds_to: &dyn AccessMethod,
    is_push: bool,
    src_did: Option<&str>,
    sync_spec: &SyncSpec,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

sync_runFunction · 0.85
test_buckets_createdFunction · 0.85
test_one_updated_eventFunction · 0.85
test_eventsFunction · 0.85

Calls 3

sync_oneFunction · 0.85
get_bucketsMethod · 0.45

Tested by 3

test_buckets_createdFunction · 0.68
test_one_updated_eventFunction · 0.68
test_eventsFunction · 0.68