mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 17:46:58 -05:00
format code
This commit is contained in:
parent
19308037e5
commit
f09d65b2e5
@ -1,6 +1,6 @@
|
|||||||
package io
|
package io
|
||||||
|
|
||||||
import(
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ func (bSet *VBufferSet) FetchBuffer(minSize int) []byte {
|
|||||||
return make([]byte, minSize)
|
return make([]byte, minSize)
|
||||||
}
|
}
|
||||||
select {
|
select {
|
||||||
case buffer = <- byteChan:
|
case buffer = <-byteChan:
|
||||||
default:
|
default:
|
||||||
buffer = make([]byte, minSize)
|
buffer = make([]byte, minSize)
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package tcp
|
package tcp
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net"
|
|
||||||
"io"
|
"io"
|
||||||
|
"net"
|
||||||
)
|
)
|
||||||
|
|
||||||
type VFreeConnection struct {
|
type VFreeConnection struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user