panlei
2019-10-23 a63f2fb33b2bd64921d4fffcacd98d065698a2b6
main.go
@@ -7,6 +7,7 @@
   "net/http"
   _ "net/http/pprof"
   "ruleprocess/insertdata"
   "ruleprocess/logger"
   "ruleprocess/structure"
   "ruleprocess/util"
   "time"
@@ -16,7 +17,6 @@
   "flag"
   "fmt"
   "github.com/golang/protobuf/proto"
   "basic.com/valib/logger.git"
   //"gocv.io/x/gocv"
   //"image"
   //"image/color"
@@ -91,7 +91,7 @@
         } else {
            //runtime.GOMAXPROCS(runtime.NumCPU())
            //logger.Debug("使用的cpu个数:",runtime.NumCPU())
            go func(msg []byte) {
            //go func(msg []byte) {
               logger.Debug("当前时间戳:", time.Now().Unix())
               arg := structure.SdkDatas{}
               //paramFormat(msg, &arg)
@@ -107,7 +107,8 @@
               logger.Debug("插入完Es所用时间:", time.Since(start))
               //事件推送
               //go labelFilter.Judge(resultMsg)
            }(msg)
               logger.OutPutByPanlei()
            //}(msg)
         }
      }
   }