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

Method worker

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

Source from the content-addressed store, hash-verified

76}
77
78func (l *authAutoRefreshLoop) worker(ctx context.Context) {
79 for {
80 select {
81 case <-ctx.Done():
82 return
83 case authID := <-l.jobs:
84 if authID == "" {
85 continue
86 }
87 l.manager.refreshAuth(ctx, authID)
88 l.queueReschedule(authID)
89 }
90 }
91}
92
93func (l *authAutoRefreshLoop) rebuild(now time.Time) {
94 type entry struct {

Callers 1

runMethod · 0.95

Calls 2

queueRescheduleMethod · 0.95
refreshAuthMethod · 0.80

Tested by

no test coverage detected