Skip to content

Commit

Permalink
Fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
adamzapasnik committed Aug 31, 2022
1 parent c7e6cac commit aba250c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sidekiq/limit_fetch/global/monitor.rb
Expand Up @@ -33,7 +33,7 @@ def old_processes

def remove_old_processes!
Sidekiq.redis do |it|
old_processes.each {|process| it.srem PROCESS_SET, process }
old_processes.each {|process| it.srem PROCESS_SET, [process] }
end
end

Expand All @@ -48,7 +48,7 @@ def update_heartbeat(ttl)
Sidekiq.redis do |it|
it.multi do |pipeline|
pipeline.set heartbeat_key, true
pipeline.sadd PROCESS_SET, Selector.uuid
pipeline.sadd PROCESS_SET, [Selector.uuid]
pipeline.expire heartbeat_key, ttl
end
end
Expand Down

0 comments on commit aba250c

Please sign in to comment.