pub fn sync_dir(
conn: &Connection,
sync_dir: &Path,
machine_id: &str,
cursors_path: &Path,
dry_run: bool,
) -> KimetsuResult<SyncReport>Expand description
Full sync cycle:
- Push this machine’s new events.
- Pull every other machine’s new batches.
- Persist updated cursors.
Returns a summary of what happened.