Make final stealing less aggressive

This commit is contained in:
Igor Katson 2023-12-25 09:09:52 -05:00
parent 5d4ffae6de
commit 8cdf44c4fd
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5

View file

@ -1215,7 +1215,7 @@ impl PeerHandler {
let next = match self
.try_steal_old_slow_piece(10.)
.or_else(|| self.reserve_next_needed_piece().ok().flatten())
.or_else(|| self.try_steal_old_slow_piece(2.))
.or_else(|| self.try_steal_old_slow_piece(3.))
{
Some(next) => next,
None => {