upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/purgatory/sync/functions.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-01-07 12:05:49 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-01-07 12:05:49 +0000
commitfc9f1e282b16bc373c3913973879b43d3f254eb2 (patch)
treece8e3584921b154266c663b9ee3a353a14609265 /src/purgatory/sync/functions.rs
parent8babcee8fdfa5b0f460aa1e6d8057feb7d2fda49 (diff)
Add sync queue to Purgatory with enqueue_sync and has_pending_events
- Add sync_queue field to Purgatory struct for tracking identifiers that need background git data fetching - Implement enqueue_sync() with debouncing - resets attempt_count and updates next_attempt when new events arrive for an identifier already in queue - Add enqueue_sync_default() for user-submitted events (3 minute delay to wait for git push) - Add enqueue_sync_immediate() for sync-triggered events (500ms delay for batching burst arrivals) - Implement has_pending_events() to check if an identifier has state events or PR events in purgatory - Add helper methods: sync_queue(), remove_from_sync_queue(), sync_queue_size() - Add unit tests for debouncing behavior and pending event detection
Diffstat (limited to 'src/purgatory/sync/functions.rs')
0 files changed, 0 insertions, 0 deletions