diff --git a/dht.go b/dht.go index c2c3f9abd21..34b5ef19380 100644 --- a/dht.go +++ b/dht.go @@ -398,7 +398,7 @@ func (dht *IpfsDHT) nearestPeersToQuery(pmes *pb.Message, count int) []peer.ID { return closer } -// betterPeersToQuery returns nearestPeersToQuery, but if and only if closer than self. +// betterPeersToQuery returns nearestPeersToQuery with some additional filtering func (dht *IpfsDHT) betterPeersToQuery(pmes *pb.Message, p peer.ID, count int) []peer.ID { closer := dht.nearestPeersToQuery(pmes, count)