From b6bc6bf3590aedc964a9c2016805f645754c9572 Mon Sep 17 00:00:00 2001
From: panlei <2799247126@qq.com>
Date: 星期四, 12 九月 2019 15:34:10 +0800
Subject: [PATCH] ---联动任务

---
 main.go |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/main.go b/main.go
index 36470b8..a6bf707 100644
--- a/main.go
+++ b/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"
@@ -36,14 +38,17 @@
 
 }
 func main() {
+	//fmt.Println("缂撳瓨鍒濆鍖栧畬鎴�",<- initchan)//dbserver鍒濆鍖栧畬姣�
+	go func() {
+		http.ListenAndServe("0.0.0.0:8899",nil)
+	}()
 	flag.Parse()
 	wg := sync.WaitGroup{}
-	wg.Add(2)
+	wg.Add(3)
 
 	dbapi.Init(*dbIp, *dbPort)
 	go cache.Init(initchan, *dbIp, *surveyPort, *pubPort)
 	logger.Info("cache init completed!!!", <-initchan) //dbserver鍒濆鍖栧畬姣�
-	//fmt.Println("缂撳瓨鍒濆鍖栧畬鎴�",<- initchan)//dbserver鍒濆鍖栧畬姣�
 	ruleserver.Init()
 	go ruleserver.TimeTicker()
 	go ruleserver.StartServer()

--
Gitblit v1.8.0