From 5d6651a0c9e966307d66769e8581e6da205faaab Mon Sep 17 00:00:00 2001 From: panlei <2799247126@qq.com> Date: 星期五, 15 十一月 2019 14:25:43 +0800 Subject: [PATCH] 完善静止算法 --- main.go | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 360d176..f7c05c9 100644 --- a/main.go +++ b/main.go @@ -16,10 +16,11 @@ "flag" "fmt" "github.com/golang/protobuf/proto" - "github.com/spf13/viper" + "ruleprocess/cache" "ruleprocess/ruleserver" "sync" + "github.com/spf13/viper" ) var dbIp = flag.String("dbIp", "127.0.0.1", "dbserver ip") @@ -87,7 +88,7 @@ } else { //runtime.GOMAXPROCS(runtime.NumCPU()) //logger.Debug("浣跨敤鐨刢pu涓暟锛�",runtime.NumCPU()) - go func(msg []byte) { + //go func(msg []byte) { logger.Debug("褰撳墠鏃堕棿鎴筹細", time.Now().Unix()) arg := structure.SdkDatas{} //paramFormat(msg, &arg) @@ -106,7 +107,7 @@ logger.Debug("鎻掑叆瀹孍s鎵�鐢ㄦ椂闂达細", esEnd) //浜嬩欢鎺ㄩ�� labelFilter.PushSomthing(resultMsg) - }(msg) + //}(msg) } } } -- Gitblit v1.8.0