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

Use a string value for the scan cursor #51

Merged
merged 1 commit into from
Sep 12, 2024
Merged

Use a string value for the scan cursor #51

merged 1 commit into from
Sep 12, 2024

Conversation

mdumandag
Copy link
Contributor

Since it can be quite big, sending it as a number can cause it to be larger than the max safe integer value in JSON, and result in unpredictable iteration.

Instead, it is now converted to string.

We don't have to do it for other scan commands, their cursor values are small, but I have done it anyways to be on the safe side.

Since it can be quite big, sending it as a number can cause it
to be larger than the max safe integer value in JSON, and result
in unpredictable iteration.

Instead, it is now converted to string.

We don't have to do it for other scan commands, their cursor values
are small, but I have done it anyways to be on the safe side.
@fahreddinozcan fahreddinozcan merged commit eb24e6c into main Sep 12, 2024
1 check passed
@mdumandag mdumandag deleted the scan-cursor branch September 12, 2024 14:23
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