mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-31 04:01:55 +00:00
document that msgBytes in p2p/connection change
This commit is contained in:
@@ -23,7 +23,10 @@ type Reactor interface {
|
||||
|
||||
// Receive is called when msgBytes is received from peer.
|
||||
//
|
||||
// CONTRACT: msgBytes are not nil
|
||||
// NOTE reactor can not keep msgBytes around after Receive completes without
|
||||
// copying.
|
||||
//
|
||||
// CONTRACT: msgBytes are not nil.
|
||||
Receive(chID byte, peer Peer, msgBytes []byte)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user