-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
add func Uint64Map Uint64s #453
Conversation
add func Uint64Map Uint64s
add test uint64s
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.
Thanks for looking a this, just a few little bits of feedback.
Co-Authored-By: Steven Hartland <[email protected]>
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.
Sorry missed the fact there was no doc comments for the new methods in my previous review.
Hi @xuanskyer could you address the comments above and rebase to fix the conflicts please? |
done |
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.
Thanks for the update @xuanskyer few more things with the update and one I missed when I initially reviewed, sorry about that.
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.
Thanks for the change!
I think you forgot to push the update there @xuanskyer |
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.
Couple of fixes to the doc strings, to make them consistent with the existing methods but also missing a test for Uint64Map
and validation that Uint64s
works with math.MaxUint64
.
redis/reply.go
Outdated
@@ -479,6 +479,55 @@ func Positions(result interface{}, err error) ([]*[2]float64, error) { | |||
return positions, nil | |||
} | |||
|
|||
// Uint64s is a helper that converts an array command reply to a []uint64. | |||
//If err is not equal to nil, then Uint64s returns nil, err. Nil array |
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.
//If err is not equal to nil, then Uint64s returns nil, err. Nil array | |
// If err is not equal to nil, then Uint64s returns nil, err. Nil array |
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.
Thanks @xuanskyer almost there, you just missed the doc comment fix, so I've added it again so you can just click 'Commit suggestion'.
Co-Authored-By: Steven Hartland <[email protected]>
Add two additional help functions that handle uint64 data types: * Uint64Map * Uint64s
add func Uint64Map Uint64s