-
Notifications
You must be signed in to change notification settings - Fork 25
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(network): broadcast stress test #2025
base: main
Are you sure you want to change the base?
Conversation
69c6105
to
8fab583
Compare
8fab583
to
9365978
Compare
Artifacts upload triggered. View details here |
Artifacts upload triggered. View details here |
ad0ec18
to
a568a60
Compare
Artifacts upload triggered. View details here |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2025 +/- ##
===========================================
+ Coverage 40.10% 76.89% +36.79%
===========================================
Files 26 393 +367
Lines 1895 42638 +40743
Branches 1895 42638 +40743
===========================================
+ Hits 760 32788 +32028
- Misses 1100 7558 +6458
- Partials 35 2292 +2257 ☔ View full report in Codecov by Sentry. |
Artifacts upload triggered. View details here |
let vec_size = value.len(); | ||
let payload_size = vec_size - 12; | ||
let payload_size = vec_size - METADATA_SIZE; | ||
let id_and_time = value.split_off(payload_size); |
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.
The message parsing code should validate that value.len() >= METADATA_SIZE
before attempting to split the message. This prevents panics from malformed messages. Consider adding:
if value.len() < METADATA_SIZE {
return Err(NetworkError::InvalidMessageFormat);
}
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
Artifacts upload triggered. View details here |
Artifacts upload triggered. View details here |
Benchmark movements: |
Artifacts upload triggered. View details here |
Artifacts upload triggered. View details here |
Artifacts upload triggered. View details here |
Artifacts upload triggered. View details here |
Artifacts upload triggered. View details here |
Artifacts upload triggered. View details here |
Artifacts upload triggered. View details here |
Artifacts upload triggered. View details here |
No description provided.