fix
This commit is contained in:
parent
aaa0d3668c
commit
ae1cb0762b
@ -66,6 +66,8 @@ func (p *MyMsg) MarshalString(s string) []byte {
|
|||||||
|
|
||||||
// Marshal implements the Marshal method of MessageBody interface.
|
// Marshal implements the Marshal method of MessageBody interface.
|
||||||
func (p *MyMsg) Unmarshal(b []byte) error {
|
func (p *MyMsg) Unmarshal(b []byte) error {
|
||||||
|
defer func() {
|
||||||
|
}()
|
||||||
|
|
||||||
p.TYPE = binary.BigEndian.Uint32(b[:4])
|
p.TYPE = binary.BigEndian.Uint32(b[:4])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user