1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-04 16:37:12 -05:00

Format: run go fmt ./...

This commit is contained in:
loyalsoldier 2020-08-30 21:17:22 +08:00
parent 4c9210cf11
commit 1fa89b32d4
No known key found for this signature in database
GPG Key ID: 23829BBC1ACF2C90
9 changed files with 20 additions and 21 deletions

View File

@ -200,7 +200,7 @@ func (h *Handler) Dial(ctx context.Context, dest net.Destination) (internet.Conn
return h.getStatCouterConnection(conn), err return h.getStatCouterConnection(conn), err
} }
func (h *Handler) getStatCouterConnection(conn internet.Connection) (internet.Connection) { func (h *Handler) getStatCouterConnection(conn internet.Connection) internet.Connection {
if h.uplinkCounter != nil || h.downlinkCounter != nil { if h.uplinkCounter != nil || h.downlinkCounter != nil {
return &internet.StatCouterConnection{ return &internet.StatCouterConnection{
Connection: conn, Connection: conn,

View File

@ -2,8 +2,8 @@ package sidh
import ( import (
"errors" "errors"
. "v2ray.com/core/external/github.com/cloudflare/sidh/internal/isogeny"
"io" "io"
. "v2ray.com/core/external/github.com/cloudflare/sidh/internal/isogeny"
) )
// I keep it bool in order to be able to apply logical NOT // I keep it bool in order to be able to apply logical NOT

View File

@ -3,8 +3,8 @@ package quic
import ( import (
"sync" "sync"
"v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol"
"v2ray.com/core/common/bytespool" "v2ray.com/core/common/bytespool"
"v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol"
) )
type packetBuffer struct { type packetBuffer struct {

View File

@ -22,8 +22,8 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"v2ray.com/core/external/github.com/cloudflare/sidh/sidh"
"golang.org/x/crypto/curve25519" "golang.org/x/crypto/curve25519"
"v2ray.com/core/external/github.com/cloudflare/sidh/sidh"
) )
// numSessionTickets is the number of different session tickets the // numSessionTickets is the number of different session tickets the

View File

@ -50,7 +50,6 @@ func ReadTCPSession(user *protocol.MemoryUser, reader io.Reader) (*protocol.Requ
DrainSize := BaseDrainSize + 16 + 38 + RandDrainRolled DrainSize := BaseDrainSize + 16 + 38 + RandDrainRolled
readSizeRemain := DrainSize readSizeRemain := DrainSize
buffer := buf.New() buffer := buf.New()
defer buffer.Release() defer buffer.Release()