Skip to content

Commit

Permalink
Fix lingering command pipelining to Redis instance (#5173)
Browse files Browse the repository at this point in the history
Related to #5139. Redis was still throwing deprecation warnings for the
`conn.expire` call.
  • Loading branch information
nickrivadeneira authored Feb 3, 2022
1 parent d5bbb64 commit 83201e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sidekiq/launcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ def ❤

transaction.unlink(workers_key)
curstate.each_pair do |tid, hash|
conn.hset(workers_key, tid, Sidekiq.dump_json(hash))
transaction.hset(workers_key, tid, Sidekiq.dump_json(hash))
end
conn.expire(workers_key, 60)
transaction.expire(workers_key, 60)
end
end

Expand Down

0 comments on commit 83201e9

Please sign in to comment.