upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/how-to/production-sync-testing.md
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-01-09 20:52:07 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-01-09 20:52:07 +0000
commita68e23733e78d33ca1d48b83414a8db63ca3d5fd (patch)
tree6193aa978c361581dc0f64c6f65e4ef8343a2ff7 /docs/how-to/production-sync-testing.md
parent506829156784e87fd482b0b102540ea4a3c9f777 (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 'docs/how-to/production-sync-testing.md')
0 files changed, 0 insertions, 0 deletions