From 9cb20b2be0918cd12b9377d190c0ee49cbadf04c Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期四, 27 六月 2019 11:48:47 +0800 Subject: [PATCH] push once --- service/FaceSdkService.go | 19 +++++++++++-------- 1 files changed, 11 insertions(+), 8 deletions(-) diff --git a/service/FaceSdkService.go b/service/FaceSdkService.go index f67a500..a15485d 100644 --- a/service/FaceSdkService.go +++ b/service/FaceSdkService.go @@ -14,8 +14,8 @@ ) const ( - Url_Service_PUSH = "ipc:///tmp///webserver_2.ipc" - Url_Service_PULL = "ipc:///tmp///webserver_1.ipc" + Url_Service_PUSH = "ipc:///tmp///virtual-faceextract-sdk-pull_2.ipc" + Url_Service_PULL = "ipc:///tmp///virtual-faceextract-sdk-pull_1.ipc" ) var imgPushChan chan protomsg.Recvmsg var client_push deliver.Deliver @@ -39,13 +39,16 @@ fmt.Println("image is not compressible") } bc = bc[:n] + //for { + PushImgMsg(protomsg.Recvmsg{ + Id:uuid.NewV4().String(), + Addr:"", + Picdata:bc, + }) + fmt.Println("pushed img") + //time.Sleep(10*time.Second) + //} - PushImgMsg(protomsg.Recvmsg{ - Id:uuid.NewV4().String(), - Addr:"", - Picdata:bc, - }) - fmt.Println("pushed img") } } -- Gitblit v1.8.0