From a47f65826face3da7a7c4bbc01b2c9afea47f88a Mon Sep 17 00:00:00 2001 From: panlei <2799247126@qq.com> Date: 星期四, 31 十月 2019 10:02:15 +0800 Subject: [PATCH] 改chan容量 --- ruleserver/personTrack.go | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ruleserver/personTrack.go b/ruleserver/personTrack.go index e1283c3..dc69af8 100644 --- a/ruleserver/personTrack.go +++ b/ruleserver/personTrack.go @@ -3,7 +3,8 @@ import ( "basic.com/pubsub/protomsg.git" "github.com/golang/protobuf/proto" - "ruleprocess/logger" + "basic.com/valib/logger.git" + "ruleprocess/structure" ) var TrackPond = make(map[string]*PersonTrack) @@ -104,8 +105,8 @@ return false } func TrackOrNot(label map[string]interface{}) bool{ - if label["yolo"] != nil && len(label["yolo"].([]Result)) > 0 { - for _,res := range label["yolo"].([]Result) { + if label["yolo"] != nil && len(label["yolo"].([]structure.Result)) > 0 { + for _,res := range label["yolo"].([]structure.Result) { if res.TimeLabel == "10" { return true } -- Gitblit v1.8.0