From 5a6639ba0450e5f58955f5d7d906b9e454a4295e Mon Sep 17 00:00:00 2001
From: panlei <2799247126@qq.com>
Date: 星期一, 04 十一月 2019 17:08:11 +0800
Subject: [PATCH] 关闭推送看cpu占用

---
 main.go |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/main.go b/main.go
index d3ef9fd..988ab80 100644
--- a/main.go
+++ b/main.go
@@ -93,7 +93,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)
@@ -110,10 +110,10 @@
 					esEnd := time.Since(start)
 					logger.Debug("鎻掑叆瀹孍s鎵�鐢ㄦ椂闂达細", esEnd)
 					//浜嬩欢鎺ㄩ��
-					labelFilter.PushSomthing(resultMsg)
+					//labelFilter.PushSomthing(resultMsg)
 					//pushEnd := time.Since(start)
 					//logger.Info("浜嬩欢鎺ㄩ�佸畬鎵�鐢ㄦ椂闂达細",ruleEnd,esEnd,pushEnd)
-				//}(msg)
+				}(msg)
 			}
 		}
 	}

--
Gitblit v1.8.0