remove RWMutex init
This commit is contained in:
父節點
99dfe89f6b
當前提交
5d542568fd
@ -43,7 +43,6 @@ func NewHashRing(spots int) *HashRing {
|
||||
h := &HashRing{
|
||||
virualSpots: spots,
|
||||
weights: make(map[string]int),
|
||||
mu: sync.RWMutex{},
|
||||
}
|
||||
return h
|
||||
}
|
||||
|
載入中…
新增問題並參考
Block a user