panlei
2019-11-07 09a9fede090bec95c3083c8b29d0632dbc0d6245
单协程
1个文件已修改
4 ■■■■ 已修改文件
main.go 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
main.go
@@ -87,7 +87,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 +106,7 @@
                    logger.Debug("插入完Es所用时间:", esEnd)
                    //事件推送
                    labelFilter.PushSomthing(resultMsg)
                }(msg)
                //}(msg)
            }
        }
    }