Commit f668e0a5 authored by Mikio Hara's avatar Mikio Hara

net: consolidate multiple init functions

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/6819117
parent e245ae75
...@@ -263,9 +263,6 @@ var startServersOnce []func() ...@@ -263,9 +263,6 @@ var startServersOnce []func()
var canCancelIO = true // used for testing current package var canCancelIO = true // used for testing current package
func sysInit() { func sysInit() {
}
func init() {
pollMaxN = runtime.NumCPU() pollMaxN = runtime.NumCPU()
if pollMaxN > 8 { if pollMaxN > 8 {
pollMaxN = 8 // No improvement then. pollMaxN = 8 // No improvement then.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment