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: simplify abstractions involved in sorted set get score #276

Merged
merged 2 commits into from
Mar 13, 2023

Conversation

pgautier404
Copy link
Contributor

No description provided.

@pgautier404 pgautier404 requested a review from cprice404 March 12, 2023 18:42
isSortedSetScoreElement()
// ScoresFloat returns an array of float64 values that represent the hit responses. Misses
// are not represented the array.
func (r SortedSetGetScoresHit) ScoresFloat() []float64 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be called ScoresArray? the scores are always floats, the difference between this accessor and the other one is the collection that you return them in.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call, fixed in 0fa04e2.

@pgautier404 pgautier404 requested a review from cprice404 March 13, 2023 16:07
@pgautier404 pgautier404 merged commit 50b695b into main Mar 13, 2023
@pgautier404 pgautier404 deleted the sorted-set-get-rework branch March 13, 2023 16:11
cprice404 pushed a commit that referenced this pull request Mar 14, 2023
* fix: simplify abstractions involved in sorted set get elements

* fix: fix accessor name
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