From 83b693462184bae0ebe3e5d6e8159566a0ae9c96 Mon Sep 17 00:00:00 2001 From: zhouyuyan Date: Fri, 8 Sep 2017 16:22:27 +0800 Subject: [PATCH] fix ws bug --- hmq.config | 2 +- main.go | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/hmq.config b/hmq.config index 5d57d0a5..3258bfbe 100644 --- a/hmq.config +++ b/hmq.config @@ -1,5 +1,5 @@ { - "workerNum":40960, + "workerNum": 4096, "port": "1883", "host": "0.0.0.0", "cluster": { diff --git a/main.go b/main.go index a79c52e5..16df8aa1 100644 --- a/main.go +++ b/main.go @@ -9,10 +9,6 @@ import ( log "github.com/cihub/seelog" ) -func init() { - -} - func main() { runtime.GOMAXPROCS(runtime.NumCPU()) runtime.GC()