panlei
2019-11-26 770da0e3e04da28d58a96526226ceece4e1a771e
main.go
@@ -16,7 +16,7 @@
   "flag"
   "fmt"
   "github.com/spf13/viper"
   log "github.com/jeanphorn/log4go"
   //log "github.com/jeanphorn/log4go"
   "ruleprocess/cache"
   "ruleprocess/ruleserver"
   "sync"
@@ -90,9 +90,9 @@
         } else {
            //runtime.GOMAXPROCS(runtime.NumCPU())
            //logger.Debug("使用的cpu个数:",runtime.NumCPU())
            //go func(msg []byte) {
            go func(msg []byte) {
               logger.Debug("当前时间戳:", time.Now().Unix())
               log.Warn(time.Now().Format("2006-01-02 15:04:05"))
               //log.Warn(time.Now().Format("2006-01-02 15:04:05"))
               arg := structure.SdkDatas{}
               //paramFormat(msg, &arg)
               start := time.Now()
@@ -110,7 +110,7 @@
               logger.Debug("插入完Es所用时间:", esEnd)
               //事件推送
               labelFilter.PushSomthing(resultMsg)
            //}(msg)
            }(msg)
         }
      }
   }