panlei
2019-11-09 573a1e019fc00e171b7df7105fe69b414a490966
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("使用的cpu个数:",runtime.NumCPU())
            go func(msg []byte) {
            //go func(msg []byte) {
               logger.Debug("当前时间戳:", time.Now().Unix())
               arg := structure.SdkDatas{}
               //paramFormat(msg, &arg)
@@ -106,7 +107,7 @@
               logger.Debug("插入完Es所用时间:", esEnd)
               //事件推送
               labelFilter.PushSomthing(resultMsg)
            }(msg)
            //}(msg)
         }
      }
   }