···395395 }()
396396}
397397398398+// PeriodicSync runs a full PDS sync for all users on a fixed interval.
399399+// Jetstream handles real-time create/update/delete events, but gaps can
400400+// appear after Jetstream downtime or rare missed events. This catches up by
401401+// reconciling each user's PDS records against the local index.
398402func (s *Server) PeriodicSync(ctx context.Context, interval time.Duration) {
399403 ticker := time.NewTicker(interval)
400404 defer ticker.Stop()