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

Add new Stream Config 2.10 fields #1113

Merged
merged 1 commit into from
Sep 20, 2023
Merged

Add new Stream Config 2.10 fields #1113

merged 1 commit into from
Sep 20, 2023

Conversation

Jarema
Copy link
Member

@Jarema Jarema commented Sep 20, 2023

Signed-off-by: Tomasz Pietrek [email protected]

Copy link
Contributor

@piotrpio piotrpio left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@neilalexander neilalexander left a comment

Choose a reason for hiding this comment

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

LGTM

@Jarema Jarema force-pushed the add-new-2_10-fields branch 2 times, most recently from 9fa371b to 45e5711 Compare September 20, 2023 10:26
@Jarema Jarema force-pushed the add-new-2_10-fields branch from 45e5711 to f608231 Compare September 20, 2023 10:42
@Jarema Jarema merged commit 0648669 into main Sep 20, 2023
13 checks passed
@Jarema Jarema deleted the add-new-2_10-fields branch September 20, 2023 11:38
/// because [Stream] can override global compression set to [Compression::S2]
/// to [Compression::None], which is different from not overriding global config with anything.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub compression: Option<Compression>,
Copy link
Contributor

@paolobarbolini paolobarbolini Sep 20, 2023

Choose a reason for hiding this comment

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

I'm trying to figure out how to play with compression while the docs haven't been updated yet and reading this doc comment made me think/wish compression could be enabled globally on the server, which is not how it seems to actually work when looking at the implementation.

I'm now confused about why we have 3 variants (Some(Compression::None), Some(Compression::S2) and None) instead of just Some(Compression::S2) and None or Compression::None and Compression::S2

@Jarema Jarema mentioned this pull request Sep 21, 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.

4 participants