From cf11bf0498eb63d8c703d6920eb0209197fa0b2f Mon Sep 17 00:00:00 2001 From: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com> Date: Wed, 2 Dec 2020 21:07:58 +0800 Subject: [PATCH] Suppress lint error (#480) --- transport/internet/sockopt_linux.go | 4 ++-- transport/internet/sockopt_windows.go | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/transport/internet/sockopt_linux.go b/transport/internet/sockopt_linux.go index 9c1c8f310..18471f8a6 100644 --- a/transport/internet/sockopt_linux.go +++ b/transport/internet/sockopt_linux.go @@ -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 { diff --git a/transport/internet/sockopt_windows.go b/transport/internet/sockopt_windows.go index cb6292bca..f84900892 100644 --- a/transport/internet/sockopt_windows.go +++ b/transport/internet/sockopt_windows.go @@ -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 {