mirror of https://github.com/v2ray/v2ray-core
format code
parent
2932d23b32
commit
edd02f7d3c
|
@ -128,7 +128,7 @@ func newBufferPool(bufferSize, poolSize int) *bufferPool {
|
|||
New: func() interface{} { return make([]byte, bufferSize) },
|
||||
},
|
||||
}
|
||||
for i := 0; i < poolSize / 2; i++ {
|
||||
for i := 0; i < poolSize/2; i++ {
|
||||
pool.chain <- make([]byte, bufferSize)
|
||||
}
|
||||
return pool
|
||||
|
|
Loading…
Reference in New Issue