From 5d542568fdbd35c6572588f810414d8d23ff32f3 Mon Sep 17 00:00:00 2001 From: g4zhuj Date: Thu, 26 Apr 2018 15:31:19 +0800 Subject: [PATCH] remove RWMutex init --- hashring.go | 1 - 1 file changed, 1 deletion(-) diff --git a/hashring.go b/hashring.go index 5ab74dd..4ac0ffd 100644 --- a/hashring.go +++ b/hashring.go @@ -43,7 +43,6 @@ func NewHashRing(spots int) *HashRing { h := &HashRing{ virualSpots: spots, weights: make(map[string]int), - mu: sync.RWMutex{}, } return h }