From 97131ef4c236425e189e37ea1f433c546ad1bd78 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Fri, 15 Jun 2018 14:13:07 -0700 Subject: [PATCH] remove random print from test --- dht_test.go | 2 +- routing.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dht_test.go b/dht_test.go index fd636ed3008..41e158fef23 100644 --- a/dht_test.go +++ b/dht_test.go @@ -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) diff --git a/routing.go b/routing.go index d75c0e0077b..e7afb180a23 100644 --- a/routing.go +++ b/routing.go @@ -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) }