Skip to content

Commit

Permalink
Merge pull request #1 from CN-hanyi/master
Browse files Browse the repository at this point in the history
修复获取PriorityQueue pop方法bug
  • Loading branch information
Sitoi authored Jul 16, 2020
2 parents 987c78d + 60fd503 commit 43cc47f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrapy_redis_sentinel/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def pop(self, timeout=0):
"""
script = self.server.register_script(pop_lua_script)
results = [script(keys=[self.key])]
if results:
if results[0]:
return self._decode_request(results[0])


Expand Down

0 comments on commit 43cc47f

Please sign in to comment.