Skip to content

fix(iroh-bytes): handle case of 0 sent bytes in send stats#1625

Merged
divagant-martian merged 2 commits into
mainfrom
fix-send-stats-panic
Oct 12, 2023
Merged

fix(iroh-bytes): handle case of 0 sent bytes in send stats#1625
divagant-martian merged 2 commits into
mainfrom
fix-send-stats-panic

Conversation

@rklaehn

@rklaehn rklaehn commented Oct 12, 2023

Copy link
Copy Markdown
Contributor

before it would panic when 0 bytes were sent. #1624

Description

use checked_div

Notes & open questions

Change checklist

  • Self-review.
  • Documentation updates if relevant.
  • Tests if relevant.

before it would panic when 0 bytes were sent. #1624
@rklaehn rklaehn requested a review from b5 October 12, 2023 14:22
@divagant-martian divagant-martian changed the title fix panic when printing send stats fix(iroh-bytes): handle case of 0 sent bytes in send stats Oct 12, 2023
@divagant-martian divagant-martian added this pull request to the merge queue Oct 12, 2023
@b5 b5 added this to the v0.7.1 milestone Oct 12, 2023
Merged via the queue into main with commit 550303c Oct 12, 2023
@dignifiedquire dignifiedquire deleted the fix-send-stats-panic branch October 12, 2023 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants