Call immediately runSyncAll in PeriodicSyncUnverified
7c84f4a parent: ee1eae0 modified
internal/server/server.go +2 -0 | @@ -400,6 +400,8 @@ func (s *Server) syncUserInBackground(userDID string, client *atproto.Client) { | ||
| 400 | 400 | // appear after Jetstream downtime or rare missed events. This catches up by |
| 401 | 401 | // reconciling each user's PDS records against the local index. |
| 402 | 402 | func (s *Server) PeriodicSync(ctx context.Context, interval time.Duration) { |
| 403 | + s.runSyncAll(ctx) | |
| 404 | + | |
| 403 | 405 | ticker := time.NewTicker(interval) |
| 404 | 406 | defer ticker.Stop() |
| 405 | 407 | |
| @@ -400,6 +400,8 @@ func (s *Server) syncUserInBackground(userDID string, client *atproto.Client) { | |||
| 400 | // appear after Jetstream downtime or rare missed events. This catches up by | 400 | // appear after Jetstream downtime or rare missed events. This catches up by |
| 401 | // reconciling each user's PDS records against the local index. | 401 | // reconciling each user's PDS records against the local index. |
| 402 | func (s *Server) PeriodicSync(ctx context.Context, interval time.Duration) { | 402 | func (s *Server) PeriodicSync(ctx context.Context, interval time.Duration) { |
| 403 | + s.runSyncAll(ctx) | ||
| 404 | + | ||
| 403 | ticker := time.NewTicker(interval) | 405 | ticker := time.NewTicker(interval) |
| 404 | defer ticker.Stop() | 406 | defer ticker.Stop() |
| 405 | 407 | ||