From dd94b37ef3cee7f753d992aa1ca2a1d9c4397863 Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Thu, 8 Jul 2021 14:33:05 -0700 Subject: [PATCH] remove completed TODO --- net/uring/io_uring_linux.go | 1 - 1 file changed, 1 deletion(-) diff --git a/net/uring/io_uring_linux.go b/net/uring/io_uring_linux.go index 3b3d1a459..365982b18 100644 --- a/net/uring/io_uring_linux.go +++ b/net/uring/io_uring_linux.go @@ -219,7 +219,6 @@ func (u *UDPConn) ReadFromNetaddr(buf []byte) (int, netaddr.IPPort, error) { r := u.recvReqs[idx] var ip netaddr.IP var port uint16 - // TODO: native go endianness conversion routines so we don't have to call ntohl, etc. if u.is4 { ip = netaddr.IPFrom4(*(*[4]byte)((unsafe.Pointer)((&r.sa.sin_addr.s_addr)))) port = endian.Ntoh16(uint16(r.sa.sin_port))