diff --git a/conf/wide.go b/conf/wide.go index 4baaafb..6e63c92 100644 --- a/conf/wide.go +++ b/conf/wide.go @@ -63,7 +63,6 @@ type conf struct { RuntimeMode string // runtime mode (dev/prod) HTTPSessionMaxAge int // HTTP session max age (in seciond) StaticResourceVersion string // version of static resources - MaxProcs int // Go max procs Locale string // default locale Autocomplete bool // default autocomplete } diff --git a/conf/wide.json b/conf/wide.json index eb6618a..dd5eaa8 100644 --- a/conf/wide.json +++ b/conf/wide.json @@ -5,7 +5,6 @@ "RuntimeMode": "dev", "HTTPSessionMaxAge": 86400, "StaticResourceVersion": "${time}", - "MaxProcs": 4, "Locale": "zh_CN", "Autocomplete": true } \ No newline at end of file diff --git a/main.go b/main.go index 6707a13..3c0ed83 100644 --- a/main.go +++ b/main.go @@ -78,8 +78,6 @@ func init() { // Main. func main() { - runtime.GOMAXPROCS(conf.Wide.MaxProcs) - initMime() handleSignal()