From d2605e0532229a141361eaec14be39e0f0ab6cff Mon Sep 17 00:00:00 2001 From: panlei <2799247126@qq.com> Date: 星期一, 01 七月 2019 17:36:47 +0800 Subject: [PATCH] -- --- main.go | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/main.go b/main.go index 9314e09..5f43081 100644 --- a/main.go +++ b/main.go @@ -10,24 +10,24 @@ "gocv.io/x/gocv" "image" "image/color" - "log" "os" "ruleprocess/insertdata" "ruleprocess/ruleserver" "ruleprocess/util" + "sync" ) func main() { - //wg := sync.WaitGroup{} - //wg.Add(1) - //go ruleserver.TimeTicker() - //nReciever("ipc:///tmp/sdk-2-rules-process.ipc", deliver.PushPull, 1) - //wg.Wait() - resp,err := DrawPolygonOnImage() - if err != nil { - log.Println("鐢绘鎴栬�呬笂浼犳湁闂") - } - log.Println(resp["fileUrl"].(string)) + wg := sync.WaitGroup{} + wg.Add(1) + go ruleserver.TimeTicker() + nReciever("ipc:///tmp/sdk-2-rules-process.ipc", deliver.PushPull, 1) + wg.Wait() + //resp,err := DrawPolygonOnImage() + //if err != nil { + // log.Println("鐢绘鎴栬�呬笂浼犳湁闂") + //} + //log.Println(resp["fileUrl"].(string)) } func nReciever(url string, m deliver.Mode, count int) { c := deliver.NewServer(m, url) -- Gitblit v1.8.0