MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / ensureAuthUpdateQueue

Method ensureAuthUpdateQueue

sdk/cliproxy/service.go:437–450  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

435}
436
437func (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
452func (s *Service) consumeAuthUpdates(ctx context.Context) {
453 ctx = coreauth.WithSkipPersist(ctx)

Callers 1

RunMethod · 0.95

Calls 1

consumeAuthUpdatesMethod · 0.95

Tested by

no test coverage detected