Skip to content

Commit

Permalink
remove random print from test
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Jun 15, 2018
1 parent 203962c commit 97131ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dht_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ func TestFindPeerQuery(t *testing.T) {

sort.Sort(peer.IDSlice(allpeers[1:]))
sort.Sort(peer.IDSlice(outpeers))
fmt.Println("counts: ", count, notfromrtable)

actualclosest := kb.SortClosestPeers(allpeers[1:], rtval)
exp := actualclosest[:20]
got := kb.SortClosestPeers(outpeers, rtval)
Expand Down
2 changes: 1 addition & 1 deletion routing.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func (dht *IpfsDHT) GetValue(ctx context.Context, key string, opts ...ropts.Opti
defer cancel()
err := dht.putValueToPeer(ctx, v.From, key, fixupRec)
if err != nil {
log.Error("Error correcting DHT entry: ", err)
log.Debug("Error correcting DHT entry: ", err)
}
}(v)
}
Expand Down

0 comments on commit 97131ef

Please sign in to comment.