---
panlei
2019-11-07 2b2576642ae036b1930c1abbb628626e7fc500f5
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,12 +97,15 @@
               ruleserver.Judge(&arg, &m) // 把sdkMessage传进去,方便缓存数据时拼出一个resultMag
               // 把arg里的打的标签拿出来给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)
               // 将打完标签的数据插入到ES
               insertdata.InsertToEs(resultMsg)
               logger.Debug("插入完Es所用时间:", time.Since(start))
               esEnd := time.Since(start)
               logger.Debug("插入完Es所用时间:", esEnd)
               //事件推送
               go labelFilter.PushSomthing(resultMsg)
               labelFilter.PushSomthing(resultMsg)
            //}(msg)
         }
      }