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

SentinelConfig: handle role possibly being a string #134

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

dhruvCW
Copy link
Contributor

@dhruvCW dhruvCW commented Aug 16, 2023

sometimes the redis options are provided as a hash with string values.

This is true in my case where the configurations are read as a json object from an environment variable.

Given that only the role is expected to be a symbol, It is a much better user experience if the conversion was handled internally by the library instead of requiring the user to handle it themselves.

sometimes the redis options are provided as a hash with string values.

Given that only the role is expected to be a symbol, It is a much better user experience if the conversion was handled internally by the library instead of requiring the user to handle it themselves.
@byroot byroot merged commit 4388804 into redis-rb:master Aug 16, 2023
11 checks passed
@dhruvCW dhruvCW deleted the handle_string_role branch August 16, 2023 13:40
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.

2 participants