From 0f45d9efa1dfd1580975ecc410d44de053f7af81 Mon Sep 17 00:00:00 2001
From: 554325746@qq.com <554325746@qq.com>
Date: 星期五, 05 七月 2019 09:45:05 +0800
Subject: [PATCH] remove base64

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

diff --git a/shardmap/shardmap.go b/shardmap/shardmap.go
index f634e19..c19edd7 100644
--- a/shardmap/shardmap.go
+++ b/shardmap/shardmap.go
@@ -83,11 +83,11 @@
 }
 
 // modify by long.
-func (s *ShardMap) Walk(wf wfOp, cfrom string) []protomsg.Baseinfo{
+func (s *ShardMap) Walk(wf wfOp, cfrom string) []*protomsg.Baseinfo{
     var wg sync.WaitGroup
     var second float32 
 
-    var baseinfos []protomsg.Baseinfo
+    var baseinfos []*protomsg.Baseinfo
 
 	for _, si := range s.shards {
         wg.Add(1)
@@ -99,7 +99,7 @@
                  if second == -1 {
                         continue 
                  }
-                 if info, ok := value.(protomsg.Baseinfo) ;ok {
+                 if info, ok := value.(*protomsg.Baseinfo) ;ok {
                     fmt.Println("姣斿鍒嗘暟: ", second)
                     info.CompareScore = second
                     baseinfos = append(baseinfos,info) 

--
Gitblit v1.8.0