mirror of https://github.com/scrapy/scrapy.git
download delay in autothrottle was being casted as int, should be float
This commit is contained in:
parent
17d958469f
commit
421dba98a7
|
|
@ -21,8 +21,8 @@ class AutoThrottle(object):
|
|||
self.last_lat = self.START_DELAY, 0.0
|
||||
|
||||
def _min_download_delay(self, settings):
|
||||
return max(settings.getint("AUTOTHROTTLE_MIN_DOWNLOAD_DELAY"),
|
||||
settings.getint("DOWNLOAD_DELAY"))
|
||||
return max(settings.getfloat("AUTOTHROTTLE_MIN_DOWNLOAD_DELAY"),
|
||||
settings.getfloat("DOWNLOAD_DELAY"))
|
||||
|
||||
def _max_concurency(self, settings):
|
||||
delay = self._min_download_delay(settings)
|
||||
|
|
|
|||
Loading…
Reference in New Issue