Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在这个示例中,这个代码是不是没有用处? bidirectional/server/server.go #29

Open
2vl opened this issue Sep 6, 2021 · 1 comment

Comments

@2vl
Copy link

2vl commented Sep 6, 2021

bidirectional/server/server.go
在这个示例中,这个代码是不是没有用处?
35和36行.这个是不是多余的?

ln, _ := net.Listen("tcp", ":9981")
go http.Serve(ln, nil)

@supermario1990
Copy link
Contributor

bidirectional/server/server.go 在这个示例中,这个代码是不是没有用处? 35和36行.这个是不是多余的?

ln, _ := net.Listen("tcp", ":9981")
go http.Serve(ln, nil)

嗯,没什么用处,可以去掉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants