// configureDiscoveryRetry configures the number of retries the registry client
// will attempt for requests with retryable errors, like 502 status codes
configureDiscoveryRetry configures the number of retries the registry client
will attempt for requests with retryable errors, like 502 status codes
// configureDiscoveryRetry configures the number of retries the registry client // will attempt for requests with retryable errors like 502 status codes
func configureDiscoveryRetry() {
	discoveryRetry = defaultRetry
	if v := os.Getenv(registryDiscoveryRetryEnvName); v != "" {
		retry, err := strconv.Atoi(v)
		if err == nil && retry > 0 {
			discoveryRetry = retry
		}
	}
}
func configureDiscoveryRetry ( ) { discoveryRetry = defaultRetry if v := os . Getenv ( registryDiscoveryRetryEnvName ) ; v != " " { retry , err := strconv . Atoi ( v ) if err == nil && retry > 0 { discoveryRetry = retry } } }
configureDiscoveryRetry configures the number of retries the registry client
will attempt for requests with retryable errors, like 502 status codes
configureDiscoveryRetry configures the number of retries the registry client will attempt for requests with retryable errors like 502 status codes