Suppress lint error (#480)

This commit is contained in:
Loyalsoldier
2020-12-02 21:07:58 +08:00
committed by GitHub
parent fe60260d48
commit cf11bf0498
2 changed files with 4 additions and 6 deletions
+2 -2
View File
@@ -9,9 +9,9 @@ import (
const (
// For incoming connections.
TCP_FASTOPEN = 23
TCP_FASTOPEN = 23 // nolint: golint,stylecheck
// For out-going connections.
TCP_FASTOPEN_CONNECT = 30
TCP_FASTOPEN_CONNECT = 30 // nolint: golint,stylecheck
)
func bindAddr(fd uintptr, ip []byte, port uint32) error {
+2 -4
View File
@@ -1,11 +1,9 @@
package internet
import (
"syscall"
)
import "syscall"
const (
TCP_FASTOPEN = 15
TCP_FASTOPEN = 15 // nolint: golint,stylecheck
)
func setTFO(fd syscall.Handle, settings SocketConfig_TCPFastOpenState) error {