FAQ
Reviewers: golang-dev_googlegroups.com,

Message:
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com),

I'd like you to review this change to
https://code.google.com/p/go


Description:
net: simplify ListenTCP

Please review this at https://codereview.appspot.com/6875044/

Affected files:
M src/pkg/net/tcpsock_posix.go


Index: src/pkg/net/tcpsock_posix.go
===================================================================
--- a/src/pkg/net/tcpsock_posix.go
+++ b/src/pkg/net/tcpsock_posix.go
@@ -299,7 +299,5 @@
closesocket(fd.sysfd)
return nil, &OpError{"listen", net, laddr, err}
}
- l := new(TCPListener)
- l.fd = fd
- return l, nil
+ return &TCPListener{fd}, nil
}

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-dev @
categoriesgo
postedDec 3, '12 at 4:27a
activeDec 3, '12 at 11:07a
posts5
users3
websitegolang.org

People

Translate

site design / logo © 2022 Grokbase