Skip to content

Commit

Permalink
Merge pull request #586 from mxinden/patch-1
Browse files Browse the repository at this point in the history
query.go: Remove shuffle comment
  • Loading branch information
Stebalien authored Apr 14, 2020
2 parents 6edcea2 + ff1a117 commit 7951e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion query.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ processFollowUp:
}

func (dht *IpfsDHT) runQuery(ctx context.Context, target string, queryFn queryFn, stopFn stopFn) (*lookupWithFollowupResult, error) {
// pick the K closest peers to the key in our Routing table and shuffle them.
// pick the K closest peers to the key in our Routing table.
targetKadID := kb.ConvertKey(target)
seedPeers := dht.routingTable.NearestPeers(targetKadID, dht.bucketSize)
if len(seedPeers) == 0 {
Expand Down

0 comments on commit 7951e3c

Please sign in to comment.