From 8cdf44c4fd0eb8f0ba5472db5c39cfa165707810 Mon Sep 17 00:00:00 2001 From: Igor Katson Date: Mon, 25 Dec 2023 09:09:52 -0500 Subject: [PATCH] Make final stealing less aggressive --- crates/librqbit/src/torrent_state/live/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/librqbit/src/torrent_state/live/mod.rs b/crates/librqbit/src/torrent_state/live/mod.rs index e2d2baa..46e3b85 100644 --- a/crates/librqbit/src/torrent_state/live/mod.rs +++ b/crates/librqbit/src/torrent_state/live/mod.rs @@ -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 => {