mirror of
https://github.com/tendermint/tendermint.git
synced 2026-04-27 19:15:12 +00:00
shim in new receive to the reactor interface
This commit is contained in:
@@ -45,6 +45,8 @@ type Reactor interface {
|
||||
//
|
||||
// CONTRACT: msgBytes are not nil.
|
||||
Receive(chID byte, peer Peer, msgBytes []byte)
|
||||
|
||||
NewReceive(Envelope)
|
||||
}
|
||||
|
||||
//--------------------------------------
|
||||
|
||||
@@ -414,6 +414,10 @@ func createMConnection(
|
||||
}
|
||||
p.metrics.PeerReceiveBytesTotal.With(labels...).Add(float64(len(msgBytes)))
|
||||
reactor.Receive(chID, p, msgBytes)
|
||||
reactor.NewReceive(Envelope{
|
||||
ChannelID: chID,
|
||||
Src: p,
|
||||
})
|
||||
}
|
||||
|
||||
onError := func(r interface{}) {
|
||||
|
||||
Reference in New Issue
Block a user