// configureRequestTimeout configures the registry client request timeout from
// environment variables
configureRequestTimeout configures the registry client request timeout from
environment variables
// configureRequestTimeout configures the registry client request timeout from // environment variables
func configureRequestTimeout() {
	requestTimeout = defaultRequestTimeout
	if v := os.Getenv(registryClientTimeoutEnvName); v != "" {
		timeout, err := strconv.Atoi(v)
		if err == nil && timeout > 0 {
			requestTimeout = time.Duration(timeout) * time.Second
		}
	}
}
func configureRequestTimeout ( ) { requestTimeout = defaultRequestTimeout if v := os . Getenv ( registryClientTimeoutEnvName ) ; v != " " { timeout , err := strconv . Atoi ( v ) if err == nil && timeout > 0 { requestTimeout = time . Duration ( timeout ) * time . Second } } }
configureRequestTimeout configures the registry client request timeout from
environment variables
configureRequestTimeout configures the registry client request timeout from environment variables