-
Notifications
You must be signed in to change notification settings - Fork 2.4k
zset member returned as an interface type instead of a string and is not type-safe #2817
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
Comments
@chayim why this was a bug? |
@szuecs Honest mistake frankly. Happens sometimes. @ofekshenawa IMHO we need to revert accordingly and release a 9.4.0 due to this. I would minor the bugfix If we feel this breaking matters - we can stack it up for future v10. |
Absolutely, I agree. We plan to release version 9.4.0 this Sunday, which will include the necessary fix. |
Thanks! |
This issue is marked stale. It will be closed in 30 days if it is not updated. |
So, this is still a breaking change and is |
Uh oh!
There was an error while loading. Please reload this page.
Expected Behavior
According to the redis doc, zset members should always be strings. We want zset members to be returned as strings so that we don't have to do type assertion explicitly.
Current Behavior
zset member is returned as an interface:
go-redis/sortedset_commands.go
Line 730 in 21bd40a
Possible Solution
Define the Z struct's member field as a string type:
go-redis/sortedset_commands.go
Lines 728 to 731 in 21bd40a
Steps to Reproduce
Context (Environment)
Detailed Description
Possible Implementation
The text was updated successfully, but these errors were encountered: