Unverified Commit fd04af92 authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #45 from aarshkshah1992/fix/nearest-bucket-doc

Fix NearestPeers Doc
parents d5af829b 7f5ba9fc
......@@ -278,8 +278,8 @@ func (rt *RoutingTable) NearestPeers(id ID, count int) []peer.ID {
// do this bucket by bucket because each bucket will share 1 fewer bit
// than the last.
//
// * bucket cpl-1: cpl-2 shared bits.
// * bucket cpl-2: cpl-3 shared bits.
// * bucket cpl-1: cpl-1 shared bits.
// * bucket cpl-2: cpl-2 shared bits.
// ...
for i := cpl - 1; i >= 0 && pds.Len() < count; i-- {
pds.appendPeersFromList(rt.Buckets[i].list)
......
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