-
-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(locksmith): replace deprecated rpoplpush w/lmove #781
fix(locksmith): replace deprecated rpoplpush w/lmove #781
Conversation
@@ -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") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we rename the method name too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the suggestion!! It got me thinking that if we changed the method name, we would also need to change the params it receives in order to be compliant with what lmove
does. Do you think it is worth to do these changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GabrielaGuedes I'm not the best to say. Hopefully a maintainer can chime in.
I'm just grateful someone is solving this annoying warning
hey! could any reviewer take a look at this please? 😃💜 |
the failure is not related to the changes done here, so I'll fix it in another PR! |
Here it is: #784 |
d54d5ca
to
07c9642
Compare
Thank you @GabrielaGuedes ! 🙏 |
@mhenrixon could we get a release please? :D |
replace rpoplpush (deprecated) by lmove
This PR replaces the occurrences of
rpoplpush
bylmove
since the first one has been deprecated in Redis 6.2: https://redis.io/commands/rpoplpush/