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

Method run

sdk/cliproxy/auth/auto_refresh_loop.go:62–76  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

60}
61
62func (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
78func (l *authAutoRefreshLoop) worker(ctx context.Context) {
79 for {

Callers 1

StartAutoRefreshMethod · 0.45

Calls 2

workerMethod · 0.95
loopMethod · 0.95

Tested by

no test coverage detected