mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Merge pull request #2771 from ddrmanxbxfr/MinorApiOptimization
Avoid recomputing range_size everytime in API
This commit is contained in:
commit
57ca17fa37
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ module Sidekiq
|
||||||
|
|
||||||
while true do
|
while true do
|
||||||
range_start = page * page_size - deleted_size
|
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|
|
entries = Sidekiq.redis do |conn|
|
||||||
conn.lrange @rname, range_start, range_end
|
conn.lrange @rname, range_start, range_end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue