Skip to content

Conversation

@kirs
Copy link
Collaborator

@kirs kirs commented Mar 21, 2025

The Redis instance might not be the client itself, but a connection pool. This PR makes progressrus call .with to obtain a connection from the pool.

Thankfully, Redis::Client implements with to be backward compatible with the connection pool implementation. So we can safely ship this and it will be a no-op for those who don't use connection pooling.

cc @byroot

@kirs kirs requested a review from casperisfine March 21, 2025 16:49
@byroot
Copy link
Contributor

byroot commented Mar 21, 2025

It was added in 4.7.0 though, so you probably need to bump the redis dependency.

@kirs
Copy link
Collaborator Author

kirs commented Mar 21, 2025

Done! do you want me to include a version bump here as well?

@kirs kirs mentioned this pull request Mar 21, 2025
@casperisfine casperisfine merged commit 2c4e8b7 into sirupsen:master Mar 24, 2025
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants