|
|
@ -358,7 +358,7 @@ func createMConnection(conn net.Conn, p *peer, reactorsByCh map[byte]Reactor, ch |
|
|
|
onReceive := func(chID byte, msgBytes []byte) { |
|
|
|
reactor := reactorsByCh[chID] |
|
|
|
if reactor == nil { |
|
|
|
cmn.PanicSanity(cmn.Fmt("Unknown channel %X", chID)) |
|
|
|
onPeerError(p, fmt.Errorf("Unknown channel %X", chID)) |
|
|
|
} |
|
|
|
reactor.Receive(chID, p, msgBytes) |
|
|
|
} |
|
|
|