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

fix(iroh-net): temp fix for progress bar when downloading a hash seq #1658

Merged
merged 7 commits into from
Oct 19, 2023

Conversation

rklaehn
Copy link
Contributor

@rklaehn rklaehn commented Oct 18, 2023

Description

Fixes the download progress bar when downloading a hash seq where the size is not known.

Notes & open questions

Is this good enough? The only way to get a proper progress for a hash seq where you don't know the overall size is to do a verified size request before and give the sum of the sizes to the progress logic. But that would be another roundtrip. Fine for GUI stuff, but in many cases we don't really care, so I would hate to do this all the time.

Change checklist

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

it is an important information
download is now the main op, get is implemented in terms of download
@rklaehn rklaehn changed the title Download progress bug fix(iroh-net): temp fix for progress bar when downloading a hash seq Oct 18, 2023
@dignifiedquire
Copy link
Contributor

I think this is good enough. One addition I would like to see is to show the total number of bytes downloaded, maybe at the end

@rklaehn rklaehn marked this pull request as ready for review October 18, 2023 16:22
# Conflicts:
#	iroh-bytes/src/get.rs
#	iroh/src/commands/get.rs
Cargo.lock Outdated Show resolved Hide resolved
@rklaehn rklaehn added this pull request to the merge queue Oct 19, 2023
Merged via the queue into main with commit 1b5760d Oct 19, 2023
15 checks passed
@b5 b5 added this to the v0.8.0 milestone Oct 19, 2023
@dignifiedquire dignifiedquire deleted the download-progress-bug branch November 1, 2023 14:21
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.

None yet

3 participants