mirror of https://github.com/scrapy/scrapy.git
Merge pull request #2617 from redapple/engine-dupe-statement
Remove redundant slot.add_request() call in ExecutionEngine
This commit is contained in:
commit
2c5fa0c130
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue