From 1f46bdbb7a02df39041dfaf4c6b3a76440016f0a Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期三, 04 九月 2019 15:16:53 +0800 Subject: [PATCH] add dbpersoncompare query --- service/FDetectClient.go | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/service/FDetectClient.go b/service/FDetectClient.go index 70833cb..68ddce8 100644 --- a/service/FDetectClient.go +++ b/service/FDetectClient.go @@ -5,16 +5,14 @@ "context" "errors" "time" + "webserver/extend/config" "webserver/extend/logger" "google.golang.org/grpc" ) -const ( - address = "localhost:4009" -) func DoFDetectWithRpc(fdr *protomsg.FaceDetectRequest,t time.Duration) ([]*protomsg.ResultFaceDetect,error) { - conn,err := grpc.Dial(address, grpc.WithInsecure()) + conn,err := grpc.Dial(config.FaceDetectSet.Url, grpc.WithInsecure()) if err !=nil { logger.Debug("grpc dial err:",err) } -- Gitblit v1.8.0