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: Add option to enable compression of event payloads #102

Merged
merged 7 commits into from
Dec 5, 2024

Conversation

keelerm84
Copy link
Member

No description provided.

@keelerm84 keelerm84 requested a review from a team as a code owner December 4, 2024 20:24
@keelerm84 keelerm84 requested a review from cwaldren-ld December 4, 2024 22:00
@@ -107,6 +122,21 @@ where
}
};

// mut is needed for event-compression feature
#[allow(unused_mut)]
let mut additional_headers = self.default_headers.clone();
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be not worth it in terms of readability, but possibly this could conditionally be mut if event-compression is enabled, and not mut otherwise.

Copy link
Member Author

Choose a reason for hiding this comment

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

I have to do the same thing with the json bit above, so the readability doesn't seem good. I'm inclined to leave it.

launchdarkly-server-sdk/src/events/sender.rs Outdated Show resolved Hide resolved
@keelerm84 keelerm84 merged commit 5cc7aac into main Dec 5, 2024
3 checks passed
@keelerm84 keelerm84 deleted the mk/sdk-837/gzip branch December 5, 2024 17:33
keelerm84 pushed a commit that referenced this pull request Dec 10, 2024
🤖 I have created a release *beep* *boop*
---


##
[2.4.0](2.3.0...2.4.0)
(2024-12-05)


### Features

* Add option to enable compression of event payloads
([#102](#102))
([5cc7aac](5cc7aac))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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