Skip to content

Commit

Permalink
remove the "spider=self" parameter(rmax#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyHuang2 committed Nov 13, 2023
1 parent 937c537 commit a311d07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scrapy_redis/spiders.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def schedule_next_requests(self):
"""Schedules a request if available"""
# TODO: While there is capacity, schedule a batch of redis requests.
for req in self.next_requests():
self.crawler.engine.crawl(req, spider=self)
self.crawler.engine.crawl(req)

def spider_idle(self):
"""
Expand Down

0 comments on commit a311d07

Please sign in to comment.