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 Script::invoke_async return type error #233

Merged
merged 1 commit into from
Aug 25, 2019

Conversation

emschwartz
Copy link
Contributor

Previously, invoking a script with a complex return type would cause the following error: Response was of incompatible type: "Not a bulk response" (response was string data('"4b98bef92b171357ddc437b395c7c1a5145ca2bd"'))

This was because the Future returned when loading the script into the DB returns the hash of the script, and thus the return type of String would not match the intended return type.

This commit adds an enum to account for the different Future return types.

Apologies for not catching this originally!

Previously, invoking a script with a complex return type would cause the following error: Response was of incompatible type: "Not a bulk response" (response was string-data('"4b98bef92b171357ddc437b395c7c1a5145ca2bd"'))
This was because the Future returned when loading the script into the DB returns the hash of the script, and thus the return type of String would not match the intended return type.
This adds an enum to account for the different Future return types.
@Marwes Marwes merged commit 3e136d0 into redis-rs:master Aug 25, 2019
@Marwes
Copy link
Collaborator

Marwes commented Aug 25, 2019

Thanks!

@emschwartz
Copy link
Contributor Author

@Marwes Any chance you could release a version 0.12.0 or 0.11.1 with this fix included? I've got an open PR on a different repo that depends on this fix

@Marwes
Copy link
Collaborator

Marwes commented Aug 26, 2019

The one breaking change merged since 0.11 is a minimum version bump of rustc 1.26 to 1.27. I will let @badboy decide (I can't publish anyway)

@badboy
Copy link
Collaborator

badboy commented Aug 26, 2019

I can do that today (and get the reformat PR in as well) (@Marwes You don't? We should change that)

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.

None yet

3 participants