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

Handle empty bulk string (#808) #835

Merged
merged 3 commits into from
May 30, 2023

Conversation

sunLightLeaf
Copy link
Contributor

@sunLightLeaf sunLightLeaf commented May 29, 2023

Resolves #808

This did change how getRange works, as it now returns empty quotes even when the sought range exceed the length of the string, but to my knowledge (tweaking around with redis-cli) getRange returning empty quotes in such scenarios is standard redis behaviour.

Hope that helps! I'm ready to tinker with this some more in case you think this solution could be improved.

@sunLightLeaf sunLightLeaf requested a review from a team as a code owner May 29, 2023 00:38
@CLAassistant
Copy link

CLAassistant commented May 29, 2023

CLA assistant check
All committers have signed the CLA.

@mijicd
Copy link
Member

mijicd commented May 29, 2023

@sunLightLeaf Please fix formatting errors by running sbt prepare.

@sunLightLeaf
Copy link
Contributor Author

Strange. Before running sbt prepare the only failed check was lint, but now, after fixing the formatting, four other checks have turned red. Formatting alone shouldn't have had such an impact.

@mijicd
Copy link
Member

mijicd commented May 29, 2023

@sunLightLeaf it isn't related to formatting. My guess is that they're just flaky.

mijicd
mijicd previously approved these changes May 30, 2023
modules/redis/src/test/scala/zio/redis/StringsSpec.scala Outdated Show resolved Hide resolved
@mijicd mijicd merged commit b7d56c2 into zio:master May 30, 2023
@sunLightLeaf sunLightLeaf deleted the handle-empty-bulk-string branch May 30, 2023 18:47
@sunLightLeaf sunLightLeaf restored the handle-empty-bulk-string branch May 30, 2023 18:47
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.

Handle empty content properly
3 participants