mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 08:04:01 +03:00
Update to go 1.19
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ import (
|
||||
)
|
||||
|
||||
func InitTCP(conn net.Conn, readBufferSize, writeBufferSize int) error {
|
||||
tcpConn := conn.(*net.TCPConn) // nolint: forcetypeassert
|
||||
tcpConn := conn.(*net.TCPConn) //nolint: forcetypeassert
|
||||
|
||||
if err := tcpConn.SetNoDelay(true); err != nil {
|
||||
return fmt.Errorf("cannot set TCP_NO_DELAY: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user