mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-12 22:54:43 +08:00
优化gateway-减少GC
This commit is contained in:
@@ -53,7 +53,7 @@ func (pbRawProcessor *PBRawProcessor ) Unmarshal(data []byte) (interface{}, erro
|
||||
msgType = binary.BigEndian.Uint16(data[:2])
|
||||
}
|
||||
|
||||
return &PBRawPackInfo{typ:msgType,rawMsg:data[2:]},nil
|
||||
return &PBRawPackInfo{typ:msgType,rawMsg:data},nil
|
||||
}
|
||||
|
||||
// must goroutine safe
|
||||
|
||||
Reference in New Issue
Block a user