remove RWMutex init
This commit is contained in:
parent
99dfe89f6b
commit
5d542568fd
@ -43,7 +43,6 @@ func NewHashRing(spots int) *HashRing {
|
|||||||
h := &HashRing{
|
h := &HashRing{
|
||||||
virualSpots: spots,
|
virualSpots: spots,
|
||||||
weights: make(map[string]int),
|
weights: make(map[string]int),
|
||||||
mu: sync.RWMutex{},
|
|
||||||
}
|
}
|
||||||
return h
|
return h
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user