mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-10-24 23:56:29 +00:00
simplify code
This commit is contained in:
@@ -49,8 +49,7 @@ func freeBytes(b []byte) {
|
||||
size := uint32(cap(b))
|
||||
b = b[0:cap(b)]
|
||||
for i := numPools - 1; i >= 0; i-- {
|
||||
ps := poolSize[i]
|
||||
if size >= ps {
|
||||
if size >= poolSize[i] {
|
||||
pool[i].Put(b)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user