diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-07 14:01:47 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-07 14:01:47 +0000 |
| commit | 74979c1de32f69a39e0e290f56435ef687c2b6f6 (patch) | |
| tree | 26f235d1de053a5d1b44c4c7d642c2ad65fd0fd1 /src/sync/mod.rs | |
| parent | 871ab773cd1d2fea89fdfe584d637c64694f9991 (diff) | |
Add RealSyncContext implementation for production purgatory sync
Implement the production SyncContext that connects to real systems:
- RealSyncContext struct holding purgatory, database, git_data_path,
our_domain, and local_relay references
- fetch_repository_data: delegates to git::authorization module
- collect_needed_oids: collects commit hashes from state events
(branches/tags) and PR events (c-tag) in purgatory
- oid_exists: delegates to git::oid_exists function
- fetch_oids: uses git fetch --depth=1 to retrieve specific OIDs
from remote servers, running in spawn_blocking for async safety
- process_newly_available_git_data: delegates to the unified function
in git::sync module for consistent post-git-data processing
- has_pending_events: delegates to purgatory method
- find_target_repo: finds first existing owner repository on disk
- our_domain: returns configured domain for clone URL filtering
This enables the purgatory sync loop to use real database queries,
git operations, and event processing instead of mocks.
Diffstat (limited to 'src/sync/mod.rs')
0 files changed, 0 insertions, 0 deletions