Merge pull request #2617 from redapple/engine-dupe-statement

Remove redundant slot.add_request() call in ExecutionEngine
This commit is contained in:
Mikhail Korobov 2017-03-03 21:44:07 +05:00 committed by GitHub
commit 2c5fa0c130
1 changed files with 1 additions and 3 deletions

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):