mirror of
https://github.com/fumiama/WireGold.git
synced 2026-07-01 00:00:23 +08:00
optimize(head): packet encapsuling
This commit is contained in:
@@ -15,7 +15,7 @@ func SelectPacket() *Packet {
|
||||
|
||||
// PutPacket 将 Packet 放回池中
|
||||
func PutPacket(p *Packet) {
|
||||
p.TeaTypeDataSZ = 0
|
||||
p.idxdatsz = 0
|
||||
p.Data = nil
|
||||
packetPool.Put(p)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user