1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-01-03 05:25:52 +00:00

fixup! perf: restore 3.00 wishlist with cached candidates (#6549) (#6604)

This commit is contained in:
Yat Ho 2024-02-16 22:28:37 +08:00 committed by GitHub
parent 41566cfd0b
commit 16f25e1158
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1260,6 +1260,7 @@ std::vector<tr_block_span_t> tr_peerMgrGetNextRequests(tr_torrent* torrent, tr_p
{
swarm.wishlist = std::make_unique<Wishlist>(std::make_unique<tr_swarm::WishlistMediator>(swarm));
}
swarm.update_endgame();
return swarm.wishlist->next(
numwant,
[peer](tr_piece_index_t p) { return peer->hasPiece(p); },