1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-30 05:56:54 -05:00

format code

This commit is contained in:
v2ray 2016-02-03 12:18:52 +01:00
parent 2932d23b32
commit edd02f7d3c
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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) {

View File

@ -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) {