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(s2n-quic-platform): simplify Message trait #1778

Merged
merged 1 commit into from
Jun 6, 2023

Conversation

camshaft
Copy link
Contributor

@camshaft camshaft commented May 26, 2023

Description of changes:

The current Message trait in s2n-quic-platform is showing a bit of cruft and has many functions that aren't used anymore. This PR removes them and simplifies the trait quite a bit.

Call-outs:

Any functions that are only used for internal purposes (e.g. reading/writing ECN) have been moved to extension traits instead, which makes it so any message-specific complexity is isolated to that particular message.

Testing:

All of the existing tests should be sufficient to catch any regressions in the refactor.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@camshaft camshaft force-pushed the camshaft/message-refactor branch from fd84eff to 7dcd49f Compare May 26, 2023 00:31
@camshaft camshaft marked this pull request as ready for review May 31, 2023 17:28
@camshaft camshaft force-pushed the camshaft/message-refactor branch from 7dcd49f to ebe4a58 Compare June 5, 2023 22:00
@camshaft camshaft merged commit da319d0 into main Jun 6, 2023
@camshaft camshaft deleted the camshaft/message-refactor branch June 6, 2023 11:57
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