1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Avoid recomputing range_size everytime in API

This commit is contained in:
Mathieu Rheaume 2016-01-14 10:40:24 -05:00
parent 4d6133f87a
commit 606cc7e195

View file

@ -227,7 +227,7 @@ module Sidekiq
while true do
range_start = page * page_size - deleted_size
range_end = page * page_size - deleted_size + (page_size - 1)
range_end = range_start + (page_size - 1)
entries = Sidekiq.redis do |conn|
conn.lrange @rname, range_start, range_end
end