From 8acceae3cdf014a42d4aacc123560263880865b3 Mon Sep 17 00:00:00 2001 From: panlei <2799247126@qq.com> Date: 星期五, 15 十一月 2019 11:36:35 +0800 Subject: [PATCH] 给目标静止的第一帧画框给result --- 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