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

Replace kernel loop with while loop

This commit is contained in:
Nikita Misharin 2015-10-29 19:38:09 +03:00
parent a087e1db6b
commit 2e660ae683

View file

@ -225,7 +225,7 @@ module Sidekiq
page = 0
page_size = 50
loop do
while true do
range_start = page * page_size - deleted_size
range_end = page * page_size - deleted_size + (page_size - 1)
entries = Sidekiq.redis do |conn|
@ -488,7 +488,7 @@ module Sidekiq
page = -1
page_size = 50
loop do
while true do
range_start = page * page_size + offset_size
range_end = page * page_size + offset_size + (page_size - 1)
elements = Sidekiq.redis do |conn|