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

refactor: cleanup ProgressSliceWriter #2000

Merged
merged 2 commits into from
Feb 6, 2024
Merged

Conversation

Frando
Copy link
Member

@Frando Frando commented Feb 6, 2024

Description

The ProgressSliceWriter is currently duplicated code in iroh_bytes and iroh. Also there's two versions of it, one that takes a fallible and one that takes an infallible one.

This PR removes the code duplication and makes the naming understandable.

Notes & open questions

Change checklist

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

@Frando Frando requested a review from rklaehn February 6, 2024 13:59
@Frando Frando added this pull request to the merge queue Feb 6, 2024
Merged via the queue into main with commit 7edd7ab Feb 6, 2024
18 checks passed
fubuloubu pushed a commit to ApeWorX/iroh that referenced this pull request Feb 21, 2024
## Description

The `ProgressSliceWriter` is currently duplicated code in `iroh_bytes`
and `iroh`. Also there's two versions of it, one that takes a fallible
and one that takes an infallible one.

This PR removes the code duplication and makes the naming
understandable.

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## Change checklist

- [x] Self-review.
- [ ] Documentation updates if relevant.
- [ ] Tests if relevant.
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.

3 participants