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