(_ context.Context)
| 135 | } |
| 136 | |
| 137 | func (s *ActiveUsersCleanupService) iteration(_ context.Context) error { |
| 138 | inactiveUsers := s.activeUsers.PurgeInactiveUsers(time.Now().Add(-s.inactiveTimeout).UnixNano()) |
| 139 | for _, userID := range inactiveUsers { |
| 140 | s.cleanupFunc(userID) |
| 141 | } |
| 142 | return nil |
| 143 | } |
| 144 | |
| 145 | func (s *ActiveUsersCleanupService) ActiveUsers() []string { |
| 146 | return s.activeUsers.ActiveUsers(time.Now().Add(-s.inactiveTimeout).UnixNano()) |
nothing calls this directly
no test coverage detected