mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-06 16:58:11 +08:00
bugfixes to prev commit
This commit is contained in:
parent
972c0f7b4b
commit
555bc871fc
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user