From 461919b86da883133ddc6d30bf684539cc0d3b1a Mon Sep 17 00:00:00 2001
From: panlei <2799247126@qq.com>
Date: 星期二, 02 七月 2019 10:34:38 +0800
Subject: [PATCH] 改用画线方式
---
cache/cache.go | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/cache/cache.go b/cache/cache.go
index e1120c2..f72a1e0 100644
--- a/cache/cache.go
+++ b/cache/cache.go
@@ -20,6 +20,7 @@
func Init(initChan chan bool,dbIp string,surveyPort int,pubSubPort int){
+ cMap = shardmap.New(uint8(32))
urlSurvey := "tcp://" + dbIp + ":" + strconv.Itoa(surveyPort)
urlPubSub := "tcp://" + dbIp + ":" + strconv.Itoa(pubSubPort)
client, _ := gopherdiscovery.ClientWithSub(urlSurvey, urlPubSub, uuid.NewV4().String())
--
Gitblit v1.8.0