Browse Source

Chore: fix gofumpt lint (#1719)

秋のかえで 3 years ago
parent
commit
2332513471
2 changed files with 3 additions and 3 deletions
  1. 1 1
      testing/scenarios/common.go
  2. 2 2
      transport/internet/quic/dialer.go

+ 1 - 1
testing/scenarios/common.go

@@ -24,7 +24,7 @@ import (
 	"github.com/v2fly/v2ray-core/v5/common/net"
 	"github.com/v2fly/v2ray-core/v5/common/net"
 	"github.com/v2fly/v2ray-core/v5/common/retry"
 	"github.com/v2fly/v2ray-core/v5/common/retry"
 	"github.com/v2fly/v2ray-core/v5/common/serial"
 	"github.com/v2fly/v2ray-core/v5/common/serial"
-  	"github.com/v2fly/v2ray-core/v5/common/units"
+	"github.com/v2fly/v2ray-core/v5/common/units"
 )
 )
 
 
 func xor(b []byte) []byte {
 func xor(b []byte) []byte {

+ 2 - 2
transport/internet/quic/dialer.go

@@ -138,8 +138,8 @@ func (s *clientConnections) openConnection(destAddr net.Addr, config *Config, tl
 	}
 	}
 
 
 	conns = removeInactiveConnections(conns)
 	conns = removeInactiveConnections(conns)
-  
-  newError("dialing QUIC to ", dest).WriteToLog()
+
+	newError("dialing QUIC to ", dest).WriteToLog()
 
 
 	rawConn, err := internet.ListenSystemPacket(context.Background(), &net.UDPAddr{
 	rawConn, err := internet.ListenSystemPacket(context.Background(), &net.UDPAddr{
 		IP:   []byte{0, 0, 0, 0},
 		IP:   []byte{0, 0, 0, 0},