Skip to content

Commit

Permalink
fix(locksmith): replace deprecated rpoplpush w/lmove (mhenrixon#781)
Browse files Browse the repository at this point in the history
replace rpoplpush (deprecated) by lmove
  • Loading branch information
GabrielaGuedes authored and semenyukdmitry committed Jul 7, 2023
1 parent 5e81c04 commit 9e4e293
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/sidekiq_unique_jobs/locksmith.rb
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def brpoplpush(conn, wait)
# @api private
#
def rpoplpush(conn)
conn.rpoplpush(key.queued, key.primed)
conn.lmove(key.queued, key.primed, "RIGHT", "LEFT")
end

#
Expand Down
2 changes: 1 addition & 1 deletion spec/support/sidekiq_unique_jobs/testing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def rpop(key)
end

def rpoplpush(source, destination)
redis { |conn| conn.rpoplpush(source, destination) }
redis { |conn| conn.lmove(source, destination, "RIGHT", "LEFT") }
end

def blpop(*args)
Expand Down

0 comments on commit 9e4e293

Please sign in to comment.