Update golangci-lint to 1.44.2

This commit is contained in:
9seconds
2022-03-11 17:08:33 +03:00
parent 2077db1f1e
commit 5282ca26f3
17 changed files with 30 additions and 27 deletions
+2 -2
View File
@@ -10,13 +10,13 @@ import (
//
// bufferSize setting is deprecated and ignored.
func SetClientSocketOptions(conn net.Conn, bufferSize int) error {
return setCommonSocketOptions(conn.(*net.TCPConn))
return setCommonSocketOptions(conn.(*net.TCPConn)) // nolint: forcetypeassert
}
// SetServerSocketOptions tunes a TCP socket that represents a connection to
// remote server like Telegram or fronting domain (but not end user).
func SetServerSocketOptions(conn net.Conn, bufferSize int) error {
return setCommonSocketOptions(conn.(*net.TCPConn))
return setCommonSocketOptions(conn.(*net.TCPConn)) // nolint: forcetypeassert
}
func setCommonSocketOptions(conn *net.TCPConn) error {