remove RWMutex init

This commit is contained in:
g4zhuj 2018-04-26 15:31:19 +08:00
parent 99dfe89f6b
commit 5d542568fd

View File

@ -43,7 +43,6 @@ func NewHashRing(spots int) *HashRing {
h := &HashRing{
virualSpots: spots,
weights: make(map[string]int),
mu: sync.RWMutex{},
}
return h
}