upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/purgatory/sync/mod.rs
blob: 3c0d8755adc1918b683a916373d61bc069ab37cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Purgatory sync module for background git data synchronization.
//!
//! This module implements identifier-based syncing with:
//! - Batched OID fetching across all purgatory events for an identifier
//! - Domain-based throttling (configurable requests/minute per domain)
//! - Exponential backoff per identifier (20s → 2m, then 2m intervals)
//! - Debouncing for burst event arrivals

mod queue;
mod throttle;

pub use queue::SyncQueueEntry;
pub use throttle::DomainThrottle;