diff --git a/common/alloc/buffer.go b/common/alloc/buffer.go index dfac7d0a..08741e24 100644 --- a/common/alloc/buffer.go +++ b/common/alloc/buffer.go @@ -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 diff --git a/testing/servers/tcp/tcp.go b/testing/servers/tcp/tcp.go index dd50b4eb..42b9e1ea 100644 --- a/testing/servers/tcp/tcp.go +++ b/testing/servers/tcp/tcp.go @@ -12,7 +12,7 @@ type Server struct { Port v2net.Port MsgProcessor func(msg []byte) []byte accepting bool - listener *net.TCPListener + listener *net.TCPListener } func (server *Server) Start() (v2net.Destination, error) { diff --git a/testing/servers/udp/udp.go b/testing/servers/udp/udp.go index 8f4142a0..657d9e8c 100644 --- a/testing/servers/udp/udp.go +++ b/testing/servers/udp/udp.go @@ -11,7 +11,7 @@ type Server struct { Port v2net.Port MsgProcessor func(msg []byte) []byte accepting bool - conn *net.UDPConn + conn *net.UDPConn } func (server *Server) Start() (v2net.Destination, error) {