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

Improved message sending and draft create/update performance #217

Conversation

mrashed-dev
Copy link
Contributor

Description

This PR improves message send/draft create/update performance by always defaulting to application/json instead of multipart. Multipart will only be used for when a request contains a total attachments size of 3mb or higher.

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.64%. Comparing base (baa8d8a) to head (12d88ac).

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #217      +/-   ##
============================================
+ Coverage     78.53%   79.64%   +1.11%     
- Complexity      199      209      +10     
============================================
  Files            29       29              
  Lines           722      732      +10     
  Branches         69       75       +6     
============================================
+ Hits            567      583      +16     
+ Misses          117      111       -6     
  Partials         38       38              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mrashed-dev mrashed-dev merged commit 6afc9ff into main Mar 5, 2024
2 checks passed
@mrashed-dev mrashed-dev deleted the TW-2709-kotlin-implement-application-json-for-messages-drafts-api branch March 5, 2024 22:09
@mrashed-dev mrashed-dev mentioned this pull request Mar 5, 2024
mrashed-dev added a commit that referenced this pull request Mar 5, 2024
# Changelog
### Changed
* Improved message sending and draft create/update performance (#217)
* Change default timeout to match API (90 seconds) (#218)

# License
<!-- Your PR comment must contain the following line for us to merge the
PR. -->
I confirm that this contribution is made under the terms of the MIT
license and that I have the authority necessary to make this
contribution on behalf of its copyright owner.
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.

3 participants