add allocate in Receive calls

This commit is contained in:
William Banfield
2022-11-03 15:20:41 -04:00
parent fbad107210
commit e91616c15f
11 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -226,7 +226,7 @@ func (r *Reactor) ReceiveEnvelope(e p2p.Envelope) {
}
func (r *Reactor) Receive(chID byte, peer p2p.Peer, msgBytes []byte) {
var msg *ssproto.Message
msg := &ssproto.Message{}
err := proto.Unmarshal(msgBytes, msg)
if err != nil {
panic(err)