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

Move deserialization into PeerMessage to distinct variants correctly #538

Merged
merged 2 commits into from
Aug 30, 2023

Conversation

adzialocha
Copy link
Member

@adzialocha adzialocha commented Aug 30, 2023

This fixes an issue where variants of PeerMessage have not been correctly determined during deserialization.

📋 Checklist

  • Add tests that cover your changes
  • Add this PR to the Unreleased section in CHANGELOG.md
  • Link this PR to any issues it closes
  • New files contain a SPDX license header

@adzialocha adzialocha marked this pull request as ready for review August 30, 2023 10:50
@adzialocha adzialocha changed the title Move deserialization into PeerMessage to distinct variants correctly Move deserialization into PeerMessage to distinct variants correctly Aug 30, 2023
@codecov
Copy link

codecov bot commented Aug 30, 2023

Codecov Report

Patch coverage: 88.78% and project coverage change: -0.07% ⚠️

Comparison is base (bcf0fbb) 92.20% compared to head (1e9e0a5) 92.13%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #538      +/-   ##
==========================================
- Coverage   92.20%   92.13%   -0.07%     
==========================================
  Files         102      102              
  Lines       16108    16089      -19     
==========================================
- Hits        14852    14824      -28     
- Misses       1256     1265       +9     
Files Changed Coverage Δ
aquadoggo/src/replication/announcement.rs 100.00% <ø> (+3.07%) ⬆️
aquadoggo/src/replication/message.rs 75.26% <ø> (-10.26%) ⬇️
aquadoggo/src/network/peers/message.rs 88.78% <88.78%> (-11.22%) ⬇️

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

Copy link
Member

@sandreae sandreae left a comment

Choose a reason for hiding this comment

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

Thanks! This looks really good to me 👏

@adzialocha adzialocha merged commit 0cdfa63 into main Aug 30, 2023
10 checks passed
@adzialocha adzialocha deleted the fix-message-serde branch August 30, 2023 11:42
adzialocha added a commit that referenced this pull request Sep 6, 2023
* main:
  Minor README.md updates
  0.5.0
  Prepare README for v0.5.0 release (#532)
  Set unix cfg correctly
  Do only set permissions mode on unix
  Update RELEASE.md
  Improve log level user interface (#539)
  Move deserialization into `PeerMessage` to distinct variants correctly (#538)
  Bring back all connection handler logs to warn level again
  Add compiling windows binaries as well, remove macos universal one
  Adjust release profile
  Add checksum when releasing binaries
  Add v0.5.0 to CHANGELOG.md
  Add armv7-unknown-linux-gnueabihf target for cross compilation CI
  Add CI to compile and publish releases
  Make clippy happy
  Convert to ip addresses when logging multiaddr on info level
  Increase log level of handler errors to trace-level
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.

None yet

2 participants