forked from premiere/premiere-libtorrent
add comment
This commit is contained in:
parent
74ab89e6f1
commit
c4b112f23a
|
@ -496,6 +496,9 @@ namespace libtorrent
|
|||
|
||||
int max_peerlist_size = state->max_peerlist_size;
|
||||
|
||||
// TODO: 2 it would be nice if there was a way to iterate over these
|
||||
// torrent_peer objects in the order they are allocated in the pool
|
||||
// instead. It would probably be more efficient
|
||||
for (int iterations = (std::min)(int(m_peers.size()), 300);
|
||||
iterations > 0; --iterations)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue