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

Do not have Properties write their own IDs #239

Merged
merged 2 commits into from
Mar 22, 2024

Conversation

TheNeikos
Copy link
Owner

Previously each prop wrote their own id into the buffer, but did not read it.

This asymmetry is not great and this patch fixes it.

However, UserProperties is different, so it still writes ids for subsequent packets... Nothing much to be done there.

TheNeikos and others added 2 commits March 21, 2024 15:58
Previously each prop wrote their own id into the buffer, but did not
_read_ it.

This asymmetry is not great and this patch fixes it.

However, UserProperties is different, so it still writes ids for
_subsequent_ packets... Nothing much to be done there.

Signed-off-by: Marcel Müller <[email protected]>
Signed-off-by: Matthias Beyer <[email protected]>
@matthiasbeyer
Copy link
Collaborator

As you allowed Result::expect, I took the liberty to push a patch to also allow Option::expect.

@TheNeikos TheNeikos merged commit d80f354 into main Mar 22, 2024
11 checks passed
@TheNeikos TheNeikos deleted the fix/dont_write_what_you_dont_read branch March 22, 2024 11:24
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