From f3fcba5b0fe6cfa013d04d8c0e046cbf9968dfcb Mon Sep 17 00:00:00 2001 From: 554325746@qq.com <554325746@qq.com> Date: 星期二, 25 六月 2019 16:29:12 +0800 Subject: [PATCH] binfos struct to []byte --- shardmap/shardmap.go | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shardmap/shardmap.go b/shardmap/shardmap.go index f634e19..914aba3 100644 --- a/shardmap/shardmap.go +++ b/shardmap/shardmap.go @@ -87,7 +87,7 @@ 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