From 9403e8b0eaa628a062d338244cfeb6f88ffe372d Mon Sep 17 00:00:00 2001
From: 554325746@qq.com <554325746@qq.com>
Date: 星期一, 08 七月 2019 10:24:51 +0800
Subject: [PATCH] add if tableid== , range all

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

diff --git a/shardmap/shardmap.go b/shardmap/shardmap.go
index 9f1dc6c..6e19e48 100644
--- a/shardmap/shardmap.go
+++ b/shardmap/shardmap.go
@@ -26,7 +26,7 @@
 
 var Count = make(chan int)
 
-type wfOp func(a, b string) float32 
+type wfOp func(a []byte, b string) float32 
 
 /**
 * @param uint8, shardCnt must be pow of two
@@ -78,7 +78,7 @@
 }
 
 // modify by long.
-func (s *ShardMap) Walk(wf wfOp, cfrom string) ([]byte){
+func (s *ShardMap) Walk(wf wfOp, cfrom []byte) ([]byte){
     var wg sync.WaitGroup
     var second float32 
     var buf []byte
@@ -92,7 +92,7 @@
 
         wg.Add(1)
         
-		go func(st *shardItem, fw wfOp, cf string) {
+		go func(st *shardItem, fw wfOp, cf []byte) {
             defer wg.Done()
             commonmux.Lock()
 			for id, feature := range st.data {

--
Gitblit v1.8.0