-
Notifications
You must be signed in to change notification settings - Fork 170
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
Conversation
e728415
to
5ff9c88
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
9fa371b
to
45e5711
Compare
Signed-off-by: Tomasz Pietrek <[email protected]>
45e5711
to
f608231
Compare
/// 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>, |
There was a problem hiding this comment.
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
Signed-off-by: Tomasz Pietrek [email protected]