src/Worker.php
protected function tooManyErrors()
    {
        $count = count($this->_errors);
        if($count < $this->maxErrorTimes) {
            return false;
        }

        return ($this->_errors[$count - 1] - $this->_errors[$count - $this->maxErrorTimes]) <= $this->errorInterval;
    }
protected function tooManyErrors()
    {
        $count = count($this->_errors);
        if($count < $this->maxErrorTimes) {
            return false;
        }

        return ($this->_errors[$count - 1] - $this->_errors[$count - $this->maxErrorTimes]) <= $this->errorInterval;
    }
protected function tooManyErrors ( ) { $ count = count ( $ this -> _errors ) ; if ( $ count < $ this -> maxErrorTimes ) { return false ; } return ( $ this -> _errors [ $ count - 1 ] - $ this -> _errors [ $ count - $ this -> maxErrorTimes ] ) <= $ this -> errorInterval ; }
whether exceed the maximum error frequency
@return bool
whether exceed the maximum error frequency