1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 16:24:02 +00:00

disable some fastpeer code that's too expensive.

This commit is contained in:
Charles Kerr 2008-02-25 01:29:30 +00:00
parent d3779eb7d5
commit b9a9e1f1a8

View file

@ -661,6 +661,8 @@ getPreferredPieces( Torrent * t,
const tr_peer * peer = peers[k];
if( peer->peerIsInterested && !peer->clientIsChoked && tr_bitfieldHas( peer->have, piece ) )
++setme->peerCount;
#if 0
/* FIXME: this code is too expensive! */
/* The fast peer extension doesn't force a peer to actually HAVE a fast-allowed piece,
but we're guaranteed to get the same pieces from different peers,
so we'll build a list and pray one actually have this one */
@ -668,6 +670,7 @@ getPreferredPieces( Torrent * t,
/* Also, if someone SUGGESTed a piece to us, prioritize it over non-suggested others
*/
setme->suggested = tr_peerMsgsIsPieceSuggested( peer->msgs, i );
#endif
}
}