diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-09 20:52:07 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-09 20:52:07 +0000 |
| commit | a68e23733e78d33ca1d48b83414a8db63ca3d5fd (patch) | |
| tree | 6193aa978c361581dc0f64c6f65e4ef8343a2ff7 /src/sync/algorithms.rs | |
| parent | 506829156784e87fd482b0b102540ea4a3c9f777 (diff) | |
refactor(sync): consolidate to single rejected index with helper extraction
Remove rejected_states_index and use single rejected_events_index for both
announcement and state events. Extract duplicate re-processing logic into
a consolidated helper function.
Changes:
- Eliminate duplicate RepositoryAnnouncement::from_event() call
- Remove rejected_states_index field from SyncManager
- Update cleanup loop to process both event types via single index
- Add ReprocessingStats struct to track re-processing outcomes
- Add reprocess_events_from_hot_cache() helper that handles:
- Logging re-processing attempts with context
- Calling process_event_static recursively
- Tracking saved/duplicate/purgatory/rejected counts
- Replace three nearly-identical re-processing loops with helper calls
Consolidates phases 1, 5, and 6 of rejected events index refactoring.
Diffstat (limited to 'src/sync/algorithms.rs')
0 files changed, 0 insertions, 0 deletions