diff --git a/internal/socket/tcp_socket.go b/internal/socket/tcp_socket.go index dab9e4ca5..706364a72 100644 --- a/internal/socket/tcp_socket.go +++ b/internal/socket/tcp_socket.go @@ -27,8 +27,9 @@ import ( "net" "os" - "github.com/panjf2000/gnet/errors" "golang.org/x/sys/unix" + + "github.com/panjf2000/gnet/errors" ) var listenerBacklogMaxSize = maxListenerBacklog() diff --git a/internal/socket/udp_socket.go b/internal/socket/udp_socket.go index e779fb14a..974713bcb 100644 --- a/internal/socket/udp_socket.go +++ b/internal/socket/udp_socket.go @@ -27,8 +27,9 @@ import ( "net" "os" - "github.com/panjf2000/gnet/errors" "golang.org/x/sys/unix" + + "github.com/panjf2000/gnet/errors" ) func getUDPSockaddr(proto, addr string) (sa unix.Sockaddr, family int, udpAddr *net.UDPAddr, ipv6only bool, err error) { diff --git a/internal/socket/unix_socket.go b/internal/socket/unix_socket.go index cc6e64ad3..77b98cf0b 100644 --- a/internal/socket/unix_socket.go +++ b/internal/socket/unix_socket.go @@ -26,8 +26,9 @@ import ( "net" "os" - "github.com/panjf2000/gnet/errors" "golang.org/x/sys/unix" + + "github.com/panjf2000/gnet/errors" ) func getUnixSockaddr(proto, addr string) (sa unix.Sockaddr, family int, unixAddr *net.UnixAddr, err error) {