-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 sentinel connections #3376
base: master
Are you sure you want to change the base?
Fix sentinel connections #3376
Conversation
When passing args to Redis(), using the connection_kwargs args allows us to use authentication and other connection features.
great, thank you! |
@garionphx Thanks for your contribution! Make sure that tests passes |
@garionphx Since this changes makes |
@@ -240,7 +240,7 @@ def __init__( | |||
self.sentinel_kwargs = sentinel_kwargs | |||
|
|||
self.sentinels = [ | |||
Redis(hostname, port, **self.sentinel_kwargs) |
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.
As this is the only place where self.sentinel_kwargs
are used we have to remove it
This doesn't seem correct. The |
When passing args to Redis(), using the connection_kwargs args allows us to use authentication and other connection features.
Pull Request check-list
Please make sure to review and check all of these items:
NOTE: these things are not required to open a PR and can be done
afterwards / while the PR is open.
Description of change
Modified the arguments passed to Redis() when forming Sentinel connections