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:
parent
a087e1db6b
commit
2e660ae683
1 changed files with 2 additions and 2 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue