From b5182d20c165679759acb4428e116ada65b0c4e7 Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期四, 27 六月 2019 13:17:39 +0800 Subject: [PATCH] fix bug --- service/FaceSdkService.go | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/service/FaceSdkService.go b/service/FaceSdkService.go index fefcae5..f56ab10 100644 --- a/service/FaceSdkService.go +++ b/service/FaceSdkService.go @@ -14,6 +14,7 @@ ) const ( + Url_Service_PUSH = "ipc:///tmp///virtual-faceextract-sdk-pull_2.ipc" Url_Service_PULL = "ipc:///tmp///virtual-faceextract-sdk-pull_1.ipc" ) @@ -39,15 +40,15 @@ fmt.Println("image is not compressible") } bc = bc[:n] - for { + //for { PushImgMsg(protomsg.Recvmsg{ Id:uuid.NewV4().String(), Addr:"", Picdata:bc, }) fmt.Println("pushed img") - time.Sleep(10*time.Second) - } + //time.Sleep(10*time.Second) + //} } } @@ -127,9 +128,11 @@ continue } rMsg := protomsg.SdkMessage{} - if err := proto.Unmarshal(resultBytes, &rMsg);err !=nil{ + if err := proto.Unmarshal(resultBytes, &rMsg);err ==nil{ fmt.Println("recv MSG:",rMsg) resultMap[rMsg.Cid] = rMsg + } else { + fmt.Println("recv msg Err:",err) } } -- Gitblit v1.8.0