1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-30 05:55:20 -05:00

fix lint warnings

This commit is contained in:
Darien Raymond
2016-12-21 15:37:16 +01:00
parent 99c897992d
commit ceaf5d1178
31 changed files with 96 additions and 85 deletions

View File

@@ -96,10 +96,10 @@ func (p *BufferPool) Free(buffer *Buffer) {
const (
// Size of a regular buffer.
Size = 8 * 1024
// Size of a small buffer.
// SizeSmall is the size of a small buffer.
SizeSmall = 2 * 1024
PoolSizeEnvKey = "v2ray.buffer.size"
poolSizeEnvKey = "v2ray.buffer.size"
)
var (
@@ -109,7 +109,7 @@ var (
func init() {
var size uint32 = 20
sizeStr := os.Getenv(PoolSizeEnvKey)
sizeStr := os.Getenv(poolSizeEnvKey)
if len(sizeStr) > 0 {
customSize, err := strconv.ParseUint(sizeStr, 10, 32)
if err == nil {