(ctx context.Context)
| 60 | } |
| 61 | |
| 62 | func (l *authAutoRefreshLoop) run(ctx context.Context) { |
| 63 | if l == nil || l.manager == nil { |
| 64 | return |
| 65 | } |
| 66 | |
| 67 | workers := l.concurrency |
| 68 | if workers <= 0 { |
| 69 | workers = refreshMaxConcurrency |
| 70 | } |
| 71 | for i := 0; i < workers; i++ { |
| 72 | go l.worker(ctx) |
| 73 | } |
| 74 | |
| 75 | l.loop(ctx) |
| 76 | } |
| 77 | |
| 78 | func (l *authAutoRefreshLoop) worker(ctx context.Context) { |
| 79 | for { |
no test coverage detected