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:
parent
7e8453cf1e
commit
30d812eea2
@ -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…
x
Reference in New Issue
Block a user