// shouldRetry returns true if the error was temporary and count is less than retries.
shouldRetry returns true if the error was temporary and count is less than retries.
// shouldRetry returns true if the error was temporary and count is less than retries .
func (c *retryRepository) shouldRetry(count int, err error) bool {
	if err == nil {
		return false
	}
	if !isTemporaryHTTPError(err) {
		return false
	}
	if count >= c.retries {
		return false
	}
	time.Sleep(c.wait)
	glog.V(4).Infof("Retrying request to Docker registry after encountering error (%d attempts remaining): %v", count, err)
	return true
}
func ( c * retryRepository ) shouldRetry ( count int , err error ) bool { if err == nil { return false } if ! isTemporaryHTTPError ( err ) { return false } if count >= c . retries { return false } time . Sleep ( c . wait ) glog . V ( 4 ) . Infof ( " " , count , err ) return true }
shouldRetry returns true if the error was temporary and count is less than retries.
shouldRetry returns true if the error was temporary and count is less than retries .
// don't hot loop