avoid allocation

This commit is contained in:
Kioubit 2024-11-12 02:24:37 +02:00
parent 35d5f94fd5
commit ca942c45c2

View file

@ -111,7 +111,7 @@ func packetHandler(packetChan chan *[]byte) {
obj.changed = true obj.changed = true
} }
obj.Unlock() obj.Unlock()
pktPool.Put(*packet) pktPool.Put(packet)
} }
} }