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

feat: convert call and write functions to use RedisString #248

Closed
wants to merge 3 commits into from

Conversation

thomas9911
Copy link

@thomas9911 thomas9911 commented Oct 25, 2022

based on #246

@@ -453,12 +456,13 @@ impl Drop for RedisKeyWritable {
}
}

fn read_key(key: *mut raw::RedisModuleKey) -> Result<String, Utf8Error> {
fn read_key(key: *mut raw::RedisModuleKey) -> Result<(CString, size_t), NulError> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why not return a slice here?

@gkorland
Copy link
Contributor

@thomas9911 thanks for the PR.
I'm going to break this PR to two PRs one for call and the read will be handled differently

@gkorland gkorland mentioned this pull request Jan 18, 2023
@gkorland
Copy link
Contributor

gkorland commented Feb 1, 2023

fixed in #264 #263

@gkorland gkorland closed this Feb 1, 2023
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.

3 participants