From 8e24fab5b5b32b3c93d955896a7791eb75dab1ce Mon Sep 17 00:00:00 2001 From: William Banfield <4561443+williambanfield@users.noreply.github.com> Date: Tue, 25 Oct 2022 14:15:01 -0400 Subject: [PATCH] Update p2p/base_reactor.go Co-authored-by: Callum Waters --- p2p/base_reactor.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/p2p/base_reactor.go b/p2p/base_reactor.go index 2792b6889..794fa98c5 100644 --- a/p2p/base_reactor.go +++ b/p2p/base_reactor.go @@ -38,12 +38,8 @@ type Reactor interface { // or other reason). RemovePeer(peer Peer, reason interface{}) - // Receive is called by the switch when a message is received from the peer. - // - // NOTE reactor can not keep msgBytes around after Receive completes without - // copying. - // - // CONTRACT: msgBytes are not nil. + // Receive is called by the switch when an envelope is received from any connected + // peer on any of the channels registered by the reactor Receive(Envelope) }