From 759052866db32c9f0a45098b68e38da60d68c574 Mon Sep 17 00:00:00 2001
From: panlei <2799247126@qq.com>
Date: 星期一, 04 十一月 2019 09:45:08 +0800
Subject: [PATCH] 事件推送并不另起协程

---
 main.go |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/main.go b/main.go
index ddb2b73..1969eb4 100644
--- a/main.go
+++ b/main.go
@@ -7,6 +7,7 @@
 	"net/http"
 	_ "net/http/pprof"
 	"ruleprocess/insertdata"
+	"ruleprocess/labelFilter"
 	"ruleprocess/structure"
 	"ruleprocess/util"
 	"time"
@@ -62,6 +63,7 @@
 	go cache.Init(initchan, *dbIp, *surveyPort, *pubPort)
 	logger.Info("cache init completed!!!", <-initchan) //dbserver鍒濆鍖栧畬姣�
 	ruleserver.Init()
+	labelFilter.Init()
 	go ruleserver.TimeTicker()
 	go ruleserver.StartServer()
 	nReciever("ipc:///tmp/sdk-2-rules-process.ipc", deliver.PushPull, 1)
@@ -106,7 +108,7 @@
 					insertdata.InsertToEs(resultMsg)
 					logger.Debug("鎻掑叆瀹孍s鎵�鐢ㄦ椂闂达細", time.Since(start))
 					//浜嬩欢鎺ㄩ��
-					//go labelFilter.Judge(resultMsg)
+					labelFilter.PushSomthing(resultMsg)
 				//}(msg)
 			}
 		}

--
Gitblit v1.8.0