Fix:异步模式下消费者无法消费的bug

This commit is contained in:
iTuring
2024-03-22 16:06:49 +08:00
committed by finley
parent b1749b22b5
commit 2880c3239b
2 changed files with 30 additions and 2 deletions

View File

@@ -255,7 +255,7 @@ for _,v in ipairs(msgs) do
args2 = {}
end
end
if (#args2 > 2) then
if (#args2 > 0) then
redis.call('LPush', KEYS[2], unpack(args2))
end
redis.call('ZRemRangeByScore', KEYS[1], '0', ARGV[1]) -- remove msgs from pending