panlei
2019-09-09 943e5b2b9b1af596131f5e8f623bfc514668cd2d
main.go
@@ -40,7 +40,7 @@
func main() {
   flag.Parse()
   wg := sync.WaitGroup{}
   wg.Add(2)
   wg.Add(3)
   dbapi.Init(*dbIp, *dbPort)
   go cache.Init(initchan, *dbIp, *surveyPort, *pubPort)
@@ -49,7 +49,7 @@
   ruleserver.Init()
   go ruleserver.TimeTicker()
   go func() {
      logger.Info(http.ListenAndServe("0:0:0:0:6068",nil))
      http.ListenAndServe("0:0:0:0:8069",nil)
   }()
   go ruleserver.StartServer()
   nReciever("ipc:///tmp/sdk-2-rules-process.ipc", deliver.PushPull, 1)