mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 22:34:02 +03:00
Updates for go 1.18
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ func directConnection(request *protocol.TelegramRequest) error {
|
||||
defer telegramConnRaw.Close()
|
||||
|
||||
wg := &sync.WaitGroup{}
|
||||
wg.Add(2)
|
||||
wg.Add(2) // nolint: gomnd
|
||||
|
||||
go directPipe(telegramConnRaw, request.ClientConn, wg, request.Logger)
|
||||
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ func middleConnection(request *protocol.TelegramRequest) {
|
||||
}
|
||||
|
||||
wg := &sync.WaitGroup{}
|
||||
wg.Add(2)
|
||||
wg.Add(2) // nolint: gomnd
|
||||
|
||||
go middlePipe(telegramConn, clientConn, wg, request.Logger)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user