1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-24 07:03:52 +00:00

Remove redundant slot.add_request() call in ExecutionEngine

This commit is contained in:
Paul Tremberth 2017-03-03 17:15:37 +01:00
parent 7e8453cf1e
commit 30d812eea2

View File

@ -218,10 +218,8 @@ class ExecutionEngine(object):
request=request, spider=spider)
def download(self, request, spider):
slot = self.slot
slot.add_request(request)
d = self._download(request, spider)
d.addBoth(self._downloaded, slot, request, spider)
d.addBoth(self._downloaded, self.slot, request, spider)
return d
def _downloaded(self, response, slot, request, spider):