From 23c837bc4d5b4312c0bb5eb96260c90e887882ac Mon Sep 17 00:00:00 2001 From: panlei <2799247126@qq.com> Date: 星期四, 07 十一月 2019 15:10:23 +0800 Subject: [PATCH] git add . --- main.go | 13 +++++-------- 1 files changed, 5 insertions(+), 8 deletions(-) diff --git a/main.go b/main.go index 1969eb4..32fa0e0 100644 --- a/main.go +++ b/main.go @@ -13,16 +13,10 @@ "time" "basic.com/valib/logger.git" - //"bufio" - //"bytes" "flag" "fmt" "github.com/golang/protobuf/proto" "github.com/spf13/viper" - //"gocv.io/x/gocv" - //"image" - //"image/color" - //"os" "ruleprocess/cache" "ruleprocess/ruleserver" "sync" @@ -103,10 +97,13 @@ ruleserver.Judge(&arg, &m) // 鎶妔dkMessage浼犺繘鍘伙紝鏂逛究缂撳瓨鏁版嵁鏃舵嫾鍑轰竴涓猺esultMag // 鎶奱rg閲岀殑鎵撶殑鏍囩鎷垮嚭鏉ョ粰m鍐嶅皝瑁呬竴灞� resultMsg := structure.ResultMsg{SdkMessage: &m, RuleResult: arg.RuleResult} - logger.Debug("瑙勫垯鍒ゆ柇瀹屾墍鐢ㄦ椂闂达細", time.Since(start)) + ruleserver.GetAttachInfo(resultMsg.SdkMessage) + ruleEnd := time.Since(start) + logger.Debug("瑙勫垯鍒ゆ柇瀹屾墍鐢ㄦ椂闂达細", ruleEnd) // 灏嗘墦瀹屾爣绛剧殑鏁版嵁鎻掑叆鍒癊S insertdata.InsertToEs(resultMsg) - logger.Debug("鎻掑叆瀹孍s鎵�鐢ㄦ椂闂达細", time.Since(start)) + esEnd := time.Since(start) + logger.Debug("鎻掑叆瀹孍s鎵�鐢ㄦ椂闂达細", esEnd) //浜嬩欢鎺ㄩ�� labelFilter.PushSomthing(resultMsg) //}(msg) -- Gitblit v1.8.0