-
Notifications
You must be signed in to change notification settings - Fork 159
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
Show a progressbar when downloading tipset headers. #1469
Conversation
Downloading tipset headers can take anywhere from minutes to hours.
Codecov Report
@@ Coverage Diff @@
## main #1469 +/- ##
==========================================
- Coverage 24.27% 24.26% -0.01%
==========================================
Files 311 311
Lines 23896 23901 +5
==========================================
Hits 5800 5800
- Misses 18096 18101 +5
Continue to review full report at Codecov.
|
@@ -844,10 +844,17 @@ async fn sync_headers_in_reverse<DB: BlockStore + Sync + Send + 'static>( | |||
parent_tipsets.push(proposed_head.clone()); | |||
tracker.write().await.set_epoch(current_head.epoch()); | |||
|
|||
use pbr::ProgressBar; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we use those only once, how about either moving them to the top of the file or fully qualifying method calls?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice change!
Downloading tipset headers can take anywhere from minutes to hours.
Summary of changes
Changes introduced in this pull request:
Reference issue to close (if applicable)
Other information and links