From b1194b4763e264c95be0e5277f5490a0553d7302 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Sun, 19 May 2019 21:03:32 +0800 Subject: [PATCH] =?UTF-8?q?:wrench:=20=E7=A7=BB=E9=99=A4=20CPU=20=E6=A0=B8?= =?UTF-8?q?=E6=95=B0=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/wide.go | 1 - conf/wide.json | 1 - main.go | 2 -- 3 files changed, 4 deletions(-) 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()