@cryptotaxi247 / kubo / commits / 555bc871f

bugfixes to prev commit

Juan Batiz-Benet committed Oct 9, 2014 at 04:53 UTC 555bc871fcd96420099be6f8daa20c435de8e7f0
2 files changed +3 -2
net/mux/mux_test.go
+2 -1
@@ -9,7 +9,6 @@ import (
9 mh "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multihash"
10 msg "github.com/jbenet/go-ipfs/net/message"
11 peer "github.com/jbenet/go-ipfs/peer"
12 - u "github.com/jbenet/go-ipfs/util"
12
13 context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context"
14 )
@@ -167,6 +166,7 @@ func TestSimultMuxer(t *testing.T) {
166 }
167
168 // log.Debug("got %v", string(data))
169 + _ = data
170 counts[pid][1][1]++
171
172 case <-ctx.Done():
@@ -181,6 +181,7 @@ func TestSimultMuxer(t *testing.T) {
181 case m := <-mux1.Protocols[pid].GetPipe().Incoming:
182 counts[pid][0][1]++
183 // log.Debug("got %v", string(m.Data()))
184 + _ = m
185 case <-ctx.Done():
186 return
187 }
routing/dht/Message.go
+1 -1
@@ -41,7 +41,7 @@ func peersToPBPeers(peers []*peer.Peer) []*Message_Peer {
41 func (m *Message) GetClusterLevel() int {
42 level := m.GetClusterLevelRaw() - 1
43 if level < 0 {
44 - log.Error("GetClusterLevel: no routing level specified, assuming 0")
44 + log.Debug("GetClusterLevel: no routing level specified, assuming 0")
45 level = 0
46 }
47 return int(level)