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 missing cursor when no data is found in the zscan method #275

Merged
merged 1 commit into from
May 30, 2024

Conversation

thukim
Copy link
Contributor

@thukim thukim commented May 26, 2024

Issue: When no data is found, the current zscan method only returns an empty array, while the expected output should also contain the cursor with value "0"
Ref:

return [] unless data[key]

Screenshot 2024-05-26 at 12 20 04

This PR updates the method zscan to also return the cursor "0" which indicates end of iteration when no data is found.

@guilleiguaran guilleiguaran merged commit 0d0d97f into guilleiguaran:master May 30, 2024
5 checks passed
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