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 to decouple ASCII and Meta protocols #69

Merged
merged 12 commits into from
Oct 25, 2024

Conversation

mrattle
Copy link
Contributor

@mrattle mrattle commented Oct 12, 2024

TL;DR - What are you trying to accomplish?

This PR splits the ASCII and Meta protocols into their own separate files. More changes will be made to split tests and benchmarks apart into separate files as well, since those files are also becoming bloated as the crate has expanded.

The Value struct has been returns to its original form, from before the meta protocol implementation began. The MetaValue struct has been expanded to include all fields and take a flat structure, instead of the nested structure that the initial implementations used. This has allowed for some simplification in other parts of the code that maps meta flags once they're parsed.

Details - How are you making this change? What are the effects of this change?

Impl traits on the Client for both AsciiProtocol and MetaProtocol allow things to be split apart.

@mrattle mrattle self-assigned this Oct 12, 2024
@mrattle mrattle force-pushed the mrattle/implement-meta-set branch 3 times, most recently from efb5ba2 to 1f31e1f Compare October 23, 2024 16:32
Base automatically changed from mrattle/implement-meta-set to main October 23, 2024 17:51
@mrattle mrattle marked this pull request as ready for review October 23, 2024 21:43
@mrattle mrattle requested a review from a team as a code owner October 23, 2024 21:43
@mrattle mrattle force-pushed the mrattle/decouple-ascii-meta-protos branch from 7b58d0d to 24f76a8 Compare October 23, 2024 21:51
@mrattle mrattle force-pushed the mrattle/decouple-ascii-meta-protos branch 2 times, most recently from 11bfb91 to 7db4f34 Compare October 23, 2024 22:36
@mrattle mrattle changed the title [WIP] Refactor to decouple ASCII and Meta protocols Refactor to decouple ASCII and Meta protocols Oct 23, 2024
@mrattle mrattle force-pushed the mrattle/decouple-ascii-meta-protos branch from 7db4f34 to 0469f4d Compare October 24, 2024 10:20
@mrattle mrattle force-pushed the mrattle/decouple-ascii-meta-protos branch from 0469f4d to b16eb44 Compare October 24, 2024 13:54
@mrattle mrattle force-pushed the mrattle/decouple-ascii-meta-protos branch from 2aa3cb2 to 35b5d44 Compare October 25, 2024 14:52
@mrattle mrattle merged commit 31d41d5 into main Oct 25, 2024
4 checks passed
@mrattle mrattle deleted the mrattle/decouple-ascii-meta-protos branch October 25, 2024 19:22
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