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

refactor: make patch state key Vec<u8> instead of String #79

Merged
merged 1 commit into from
Mar 1, 2022

Conversation

itegulov
Copy link
Contributor

@itegulov itegulov commented Mar 1, 2022

Fixes #51

@itegulov itegulov requested a review from ChaoticTempest March 1, 2022 09:04
@ChaoticTempest ChaoticTempest merged commit 161fe5a into main Mar 1, 2022
@ChaoticTempest ChaoticTempest deleted the daniyar/patch-state-vec-u8 branch March 1, 2022 22:04
Comment on lines +123 to 124
key: Vec<u8>,
value: Vec<u8>,
Copy link
Contributor

Choose a reason for hiding this comment

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

these should probably be slices to be consistent with the rest of the API, or is there a reason they are not @ChaoticTempest ?

Copy link
Member

Choose a reason for hiding this comment

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

ahh, yeah best to keep them as slices. My bad, prematurely merged this one since it looked simple

Copy link
Contributor Author

@itegulov itegulov Mar 1, 2022

Choose a reason for hiding this comment

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

no worries, I can fix this real quick, I just went by the issue description

you want me to change both key and value to be &[u8], right?

Copy link
Member

Choose a reason for hiding this comment

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

yup both should be slices

Copy link
Contributor

Choose a reason for hiding this comment

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

was unrelated to this PR, just wanted to point out before opening an issue :)

@frol frol mentioned this pull request Oct 4, 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.

patch state key should be Vec<u8> and not String
3 participants