From 311f41bc841346935c95f58965c8d515f10584fc Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期三, 28 八月 2024 11:59:49 +0800
Subject: [PATCH] 添加调试日志

---
 cache/shardmap/shardmap.go |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/cache/shardmap/shardmap.go b/cache/shardmap/shardmap.go
index daf5f85..0f2cb83 100644
--- a/cache/shardmap/shardmap.go
+++ b/cache/shardmap/shardmap.go
@@ -4,6 +4,7 @@
 
 import (
 	"basic.com/pubsub/protomsg.git"
+	"fmt"
 	"sdkCompare/db"
 	"sync"
 	//"encoding/json"
@@ -93,6 +94,8 @@
 func (s *ShardMap) Walk(wf wfOp, sourceFea []float32, baseScore float32) (targets []*protomsg.SdkCompareEach) {
 	var wg sync.WaitGroup
 	var lock sync.Mutex
+	fmt.Printf("Walk shards len %d\n", len(s.shards))
+
 	for _, si := range s.shards {
 		var tempsi shardItem = *si
 

--
Gitblit v1.8.0