cleanup: panic in unmarshal error on receive

This commit is contained in:
William Banfield
2022-10-24 15:51:47 -04:00
parent 94f7df7810
commit 0b0d921e92

View File

@@ -428,8 +428,7 @@ func createMConnection(
msg := proto.Clone(mt)
err := proto.Unmarshal(msgBytes, msg)
if err != nil {
// TODO(williambanfield) add a log line
return
panic(fmt.Errorf("unmarshaling message: %s", err))
}
labels := []string{
"peer_id", string(p.ID()),