Skip to content
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 Redis Sentinel option config #73

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

parthdesai93
Copy link

@parthdesai93 parthdesai93 commented Jan 10, 2025

When trying to use Redis Sentinel, Redix crashes. I have narrowed it down to the code that is causing issue. We merge default opts always. With this PR, we won't merge them if there sentinel value is present.

@parthdesai93
Copy link
Author

This is the code that raises when we try to initialize Redis Sentinel: https://github.com/whatyouhide/redix/blob/d571d5b86c7c48c22d823187fd9a20726d6810e3/lib/redix/start_options.ex#L264-L267

@parthdesai93 parthdesai93 changed the title Only add default host and port if sentinel is not present Fix Redis Sentinel option config Jan 10, 2025
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