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

resume download #65

Merged
merged 6 commits into from
Mar 26, 2024
Merged

resume download #65

merged 6 commits into from
Mar 26, 2024

Conversation

hopeyen
Copy link
Collaborator

@hopeyen hopeyen commented Mar 25, 2024

Description

A user can optionally provide a file path to store download progress in case of failure and early cut-off. The progress is stored in a json file, in which an inner option is the map of file manifest ipfs hash to the missing chunk indices.
Progress gets stored when a file ran out of maximum attempt and there's no available indexers, or when user presses ctrl+c.
With this file, the downloader can continue downloading from a previous session.

Issue link (if applicable)

Resolves #32

Checklist

  • Are tests up-to-date with the new changes?
  • Are docs up-to-date with the new changes? (Open PR on docs repo if necessary)

@hopeyen hopeyen added size:small Small p2 Medium priority type:feature New or enhanced functionality labels Mar 25, 2024
@hopeyen hopeyen self-assigned this Mar 25, 2024
Copy link

github-actions bot commented Mar 26, 2024

Pull Request Test Coverage Report for Build 8444024390

Details

  • 0 of 94 (0.0%) changed or added relevant lines in 3 files are covered.
  • 5 unchanged lines in 1 file lost coverage.
  • Overall coverage remained the same at 0.0%

Changes Missing Coverage Covered Lines Changed/Added Lines %
file-exchange/src/main.rs 0 13 0.0%
file-exchange/src/util.rs 0 28 0.0%
file-exchange/src/download_client/mod.rs 0 53 0.0%
Files with Coverage Reduction New Missed Lines %
file-exchange/src/download_client/mod.rs 5 0.0%
Totals Coverage Status
Change from base Build 8420566847: 0.0%
Covered Lines: 0
Relevant Lines: 3720

💛 - Coveralls

@hopeyen hopeyen merged commit 6d0092d into dev Mar 26, 2024
5 checks passed
@hopeyen hopeyen deleted the hope/resume-download branch March 26, 2024 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2 Medium priority size:small Small type:feature New or enhanced functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feat: Resume download
1 participant