panlei
2019-09-09 2e39a9427085b6c39c4aff86f6ebc341f691752a
cpu test
1个文件已修改
5 ■■■■■ 已修改文件
main.go 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
main.go
@@ -4,6 +4,8 @@
    "basic.com/dbapi.git"
    "basic.com/pubsub/protomsg.git"
    "basic.com/valib/deliver.git"
    "net/http"
    _ "net/http/pprof"
    "ruleprocess/insertdata"
    "ruleprocess/util"
    "time"
@@ -46,6 +48,9 @@
    //fmt.Println("缓存初始化完成",<- initchan)//dbserver初始化完毕
    ruleserver.Init()
    go ruleserver.TimeTicker()
    go func() {
        logger.Info(http.ListenAndServe("0:0:0:0:6068",nil))
    }()
    go ruleserver.StartServer()
    nReciever("ipc:///tmp/sdk-2-rules-process.ipc", deliver.PushPull, 1)
    wg.Wait()