mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-20 00:07:06 -05:00
Remove commented code
This commit is contained in:
parent
5b7fa17aa6
commit
472cf7f523
@ -1,7 +1,6 @@
|
|||||||
package alloc
|
package alloc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
//"fmt"
|
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -55,7 +54,6 @@ func newBufferPool(allocator func(*bufferPool) *Buffer, elements2Keep, size int)
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (p *bufferPool) allocate() *Buffer {
|
func (p *bufferPool) allocate() *Buffer {
|
||||||
//fmt.Printf("Pool size: %d\n", len(p.chain))
|
|
||||||
var b *Buffer
|
var b *Buffer
|
||||||
select {
|
select {
|
||||||
case b = <-p.chain:
|
case b = <-p.chain:
|
||||||
@ -71,7 +69,6 @@ func (p *bufferPool) free(buffer *Buffer) {
|
|||||||
case p.chain <- buffer:
|
case p.chain <- buffer:
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
//fmt.Printf("Pool size: %d\n", len(p.chain))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *bufferPool) cleanup(tick <-chan time.Time) {
|
func (p *bufferPool) cleanup(tick <-chan time.Time) {
|
||||||
|
Loading…
Reference in New Issue
Block a user