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(protocol): Compressors #299

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

feat(protocol): Compressors #299

wants to merge 1 commit into from

Conversation

refcell
Copy link
Collaborator

@refcell refcell commented Nov 21, 2024

Description

Introduces compressors into op-alloy-protocol, cleaning up the brotli and zlib utility methods as well as the ChannelOut type.

@refcell refcell added A-protocol Area: protocol crate C-feat Category: New feature or request labels Nov 21, 2024
@refcell refcell self-assigned this Nov 21, 2024
@refcell
Copy link
Collaborator Author

refcell commented Nov 21, 2024

📚 $\text{Stack Overview}$

Pulls submitted in this stack:

This comment was automatically generated by st.

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

lgtm

Comment on lines +37 to +38
where
C: Compressor + Clone + core::fmt::Debug,
Copy link
Member

Choose a reason for hiding this comment

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

I think you can relax this here entirely

Comment on lines +59 to +60
where
C: Compressor + Clone + core::fmt::Debug,
Copy link
Member

Choose a reason for hiding this comment

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

is clone + debug required here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think so in order for the struct to be Clone + Debug since it's composition

crates/protocol/src/compression/zlib.rs Outdated Show resolved Hide resolved
Co-authored-by: Matthias Seitz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-protocol Area: protocol crate C-feat Category: New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants