We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9df531b commit e4d4347Copy full SHA for e4d4347
src/cargo/sources/git/utils.rs
@@ -712,6 +712,16 @@ pub fn with_fetch_options(
712
)
713
} else {
714
// Receiving objects.
715
+ //
716
+ // # Caveat
717
718
+ // Progress bar relies on git2 calling `transfer_progress`
719
+ // to update its transfer rate, but we cannot guarantee a
720
+ // periodic call of that callback. Thus if we don't receive
721
+ // any data for, say, 10 seconds, the rate will get stuck
722
+ // and never go down to 0B/s.
723
+ // In the future, we need to find away to update the rate
724
+ // even when the callback is not called.
725
let now = Instant::now();
726
// Scrape a `received_bytes` to the counter every 300ms.
727
if now - last_update > Duration::from_millis(300) {
0 commit comments