Commit 28e7c7ac authored by Marcin Tojek's avatar Marcin Tojek

Rephrase "betterPeersToQuery" method comment to be less cryptic

parent 9afff7b2
......@@ -330,7 +330,7 @@ func (dht *IpfsDHT) nearestPeersToQuery(pmes *pb.Message, count int) []peer.ID {
return closer
}
// betterPeersToQuery returns nearestPeersToQuery, but iff closer than self.
// betterPeersToQuery returns nearestPeersToQuery, but if and only if closer than self.
func (dht *IpfsDHT) betterPeersToQuery(pmes *pb.Message, p peer.ID, count int) []peer.ID {
closer := dht.nearestPeersToQuery(pmes, count)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment