From 08de038453c4ea9349e6c78b72ca531338d35a12 Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期一, 01 七月 2019 19:43:54 +0800 Subject: [PATCH] cache init --- 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