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

Make sure write returns the number of bytes it writes everywhere #818

Merged
merged 5 commits into from
Mar 11, 2024

Conversation

amokfa
Copy link
Contributor

@amokfa amokfa commented Mar 11, 2024

Solves #816

Type of change

Connect::write was returning wrong value in couple places.

Checklist:

  • Formatted with cargo fmt
  • Make an entry to CHANGELOG.md if it's relevant to the users of the library. If it's not relevant mention why.

@coveralls
Copy link

coveralls commented Mar 11, 2024

Pull Request Test Coverage Report for Build 8232546620

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall first build on fix_write_size at 37.827%

Totals Coverage Status
Change from base Build 8150861145: 37.8%
Covered Lines: 6254
Relevant Lines: 16533

💛 - Coveralls

@swanandx
Copy link
Member

swanandx commented Mar 11, 2024

i think we can now remove this comment as it is outdate:

// TODO: Returned length is wrong in other packets. Fix it

Note

we also need to make the same fix in rumqttd's protocol connect packet. can be done in separate PR as well :)

Copy link
Member

@swanandx swanandx left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

@swanandx swanandx merged commit 372fe73 into main Mar 11, 2024
4 checks passed
@swanandx swanandx deleted the fix_write_size branch March 11, 2024 13:13
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