Commit 555bc871 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

bugfixes to prev commit

parent 972c0f7b
......@@ -9,7 +9,6 @@ import (
mh "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multihash"
msg "github.com/jbenet/go-ipfs/net/message"
peer "github.com/jbenet/go-ipfs/peer"
u "github.com/jbenet/go-ipfs/util"
context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context"
)
......@@ -167,6 +166,7 @@ func TestSimultMuxer(t *testing.T) {
}
// log.Debug("got %v", string(data))
_ = data
counts[pid][1][1]++
case <-ctx.Done():
......@@ -181,6 +181,7 @@ func TestSimultMuxer(t *testing.T) {
case m := <-mux1.Protocols[pid].GetPipe().Incoming:
counts[pid][0][1]++
// log.Debug("got %v", string(m.Data()))
_ = m
case <-ctx.Done():
return
}
......
......@@ -41,7 +41,7 @@ func peersToPBPeers(peers []*peer.Peer) []*Message_Peer {
func (m *Message) GetClusterLevel() int {
level := m.GetClusterLevelRaw() - 1
if level < 0 {
log.Error("GetClusterLevel: no routing level specified, assuming 0")
log.Debug("GetClusterLevel: no routing level specified, assuming 0")
level = 0
}
return int(level)
......
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