mirror of
https://github.com/Kioubit/ColorPing
synced 2024-11-22 07:40:42 +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.changed = true
|
||||||
}
|
}
|
||||||
obj.Unlock()
|
obj.Unlock()
|
||||||
pktPool.Put(*packet)
|
pktPool.Put(packet)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue