From 8c3063e420502667043e0e1bdb35eef05fbd133b Mon Sep 17 00:00:00 2001
From: panlei <2799247126@qq.com>
Date: 星期四, 14 十一月 2019 15:11:28 +0800
Subject: [PATCH] 结果标签大改动
---
main.go | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/main.go b/main.go
index 34fa075..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)
@@ -105,8 +106,8 @@
esEnd := time.Since(start)
logger.Debug("鎻掑叆瀹孍s鎵�鐢ㄦ椂闂达細", esEnd)
//浜嬩欢鎺ㄩ��
- //labelFilter.PushSomthing(resultMsg)
- }(msg)
+ labelFilter.PushSomthing(resultMsg)
+ //}(msg)
}
}
}
--
Gitblit v1.8.0