Skip to content

Commit

Permalink
fix:Batched unpack now uses range
Browse files Browse the repository at this point in the history
  • Loading branch information
SemvandenBroek authored Sep 21, 2023
1 parent bcc92fe commit d29c568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/includes/removeZSetJobs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ local function removeZSetJobs(keyName, hard, baseKey, max)
local count = removeJobs(jobs, hard, baseKey, max)
if(#jobs > 0) then
for from, to in batches(#jobs, 7000) do
rcall("ZREM", keyName, unpack(jobs))
rcall("ZREM", keyName, unpack(jobs, from, to))
end
end
return count
Expand Down

0 comments on commit d29c568

Please sign in to comment.