mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 22:24:02 +03:00
Update to go 1.19
This commit is contained in:
@@ -52,10 +52,10 @@ func (c *ClientProtocol) Handshake(socket conntypes.StreamReadWriteCloser) (conn
|
||||
|
||||
conn, err := c.ClientProtocol.Handshake(conn)
|
||||
if err != nil {
|
||||
return nil, err // nolint: wrapcheck
|
||||
return nil, err //nolint: wrapcheck
|
||||
}
|
||||
|
||||
return conn, err // nolint: wrapcheck
|
||||
return conn, err //nolint: wrapcheck
|
||||
}
|
||||
|
||||
func (c *ClientProtocol) tlsHandshake(conn io.ReadWriter) error {
|
||||
|
||||
+2
-2
@@ -26,7 +26,7 @@ func cloak(one, another io.ReadWriteCloser) {
|
||||
another = rwc.NewPing(ctx, another, channelPing)
|
||||
wg := &sync.WaitGroup{}
|
||||
|
||||
wg.Add(2) // nolint: gomnd
|
||||
wg.Add(2) //nolint: gomnd
|
||||
|
||||
go cloakPipe(one, another, wg)
|
||||
|
||||
@@ -69,5 +69,5 @@ func cloak(one, another io.ReadWriteCloser) {
|
||||
func cloakPipe(one io.Writer, another io.Reader, wg *sync.WaitGroup) {
|
||||
defer wg.Done()
|
||||
|
||||
io.Copy(one, another) // nolint: errcheck
|
||||
io.Copy(one, another) //nolint: errcheck
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user