(ctx context.Context)
| 435 | } |
| 436 | |
| 437 | func (s *Service) ensureAuthUpdateQueue(ctx context.Context) { |
| 438 | if s == nil { |
| 439 | return |
| 440 | } |
| 441 | if s.authUpdates == nil { |
| 442 | s.authUpdates = make(chan watcher.AuthUpdate, 256) |
| 443 | } |
| 444 | if s.authQueueStop != nil { |
| 445 | return |
| 446 | } |
| 447 | queueCtx, cancel := context.WithCancel(ctx) |
| 448 | s.authQueueStop = cancel |
| 449 | go s.consumeAuthUpdates(queueCtx) |
| 450 | } |
| 451 | |
| 452 | func (s *Service) consumeAuthUpdates(ctx context.Context) { |
| 453 | ctx = coreauth.WithSkipPersist(ctx) |