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: download and export structure and progress events #2003

Merged
merged 3 commits into from
Feb 8, 2024

Conversation

Frando
Copy link
Member

@Frando Frando commented Feb 6, 2024

Description

This PR has a number of cleanups regarding download and export functionality:

  • We currently have an enum DownloadProgress which contains events for both downloading a blob and for exporting a blob from the node's blob store to files on the local filesystem. This PR moves the export progress events into an ExportProgress enum.
  • The code to export blobs to the local file system is moved from iroh to iroh-bytes
  • Code duplication around export progress is reduced and a couple of RPC and client structs are cleaned up accordingly

Notes & open questions

Change checklist

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

@Frando Frando force-pushed the refactor/download-progress branch 5 times, most recently from 290da22 to 3bab9a2 Compare February 6, 2024 23:09
@Frando Frando changed the title refactor: split download and export progress refactor: download and export structure and progress events Feb 6, 2024
@Frando Frando force-pushed the refactor/download-progress branch from 3bab9a2 to cced101 Compare February 6, 2024 23:19
@Frando Frando force-pushed the refactor/download-progress branch from cced101 to ca9edb8 Compare February 7, 2024 13:18
@Frando Frando requested a review from dignifiedquire February 7, 2024 13:29
@Frando Frando added this pull request to the merge queue Feb 8, 2024
Merged via the queue into main with commit 1838c17 Feb 8, 2024
18 checks passed
@dignifiedquire dignifiedquire deleted the refactor/download-progress branch February 8, 2024 08:29
fubuloubu pushed a commit to ApeWorX/iroh that referenced this pull request Feb 21, 2024
…ter#2003)

## Description

This PR has a number of cleanups regarding download and export
functionality:
* We currently have an enum `DownloadProgress` which contains events for
both downloading a blob and for exporting a blob from the node's blob
store to files on the local filesystem. This PR moves the export
progress events into an `ExportProgress` enum.
* The code to export blobs to the local file system is moved from `iroh`
to `iroh-bytes`
* Code duplication around export progress is reduced and a couple of RPC
and client structs are cleaned up accordingly

## Notes & open questions

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

## Change checklist

- [x] Self-review.
- [x] 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.

2 participants