Skip to content

Commit

Permalink
chore: sort imports in internal/socket
Browse files Browse the repository at this point in the history
  • Loading branch information
panjf2000 committed Jul 11, 2021
1 parent 2d1a463 commit 75f87ee
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion internal/socket/tcp_socket.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
3 changes: 2 additions & 1 deletion internal/socket/udp_socket.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 2 additions & 1 deletion internal/socket/unix_socket.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 75f87ee

Please sign in to comment.