MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / waitForRetry

Function waitForRetry

agent/utils/ssl/client.go:259–269  ·  view source on GitHub ↗
(ctx context.Context, delay time.Duration)

Source from the content-addressed store, hash-verified

257}
258
259func waitForRetry(ctx context.Context, delay time.Duration) error {
260 timer := time.NewTimer(delay)
261 defer timer.Stop()
262
263 select {
264 case <-ctx.Done():
265 return ctx.Err()
266 case <-timer.C:
267 return nil
268 }
269}

Callers 3

handleAuthorizationMethod · 0.85
ObtainSSLMethod · 0.85
ObtainIPSSLMethod · 0.85

Calls 1

StopMethod · 0.65

Tested by

no test coverage detected