mirror of
https://github.com/Kioubit/ColorPing
synced 2024-11-24 00:30:40 +08:00
avoid allocation
This commit is contained in:
parent
35d5f94fd5
commit
ca942c45c2
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -111,7 +111,7 @@ func packetHandler(packetChan chan *[]byte) {
|
|||
obj.changed = true
|
||||
}
|
||||
obj.Unlock()
|
||||
pktPool.Put(*packet)
|
||||
pktPool.Put(packet)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue