Merge pull request #126 from ikatson/bugfix-steal-2024-04

Fix a bug in stealing code
This commit is contained in:
Igor Katson 2024-04-29 15:09:45 +04:00 committed by GitHub
commit bf01929ccb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View file

@ -142,7 +142,6 @@ impl PeerStates {
begin: req.offset, begin: req.offset,
length: req.size, length: req.size,
}))); })));
live.inflight_requests.remove(&req);
} }
}); });
} }

View file

@ -321,8 +321,8 @@ async fn async_main(opts: Opts) -> anyhow::Result<()> {
up_speed.mbps(), up_speed.mbps(),
SF::new(live_stats.snapshot.uploaded_bytes), SF::new(live_stats.snapshot.uploaded_bytes),
eta, eta,
peer_stats.live + peer_stats.connecting, peer_stats.live,
peer_stats.queued, peer_stats.queued + peer_stats.connecting,
peer_stats.dead, peer_stats.dead,
); );
} }