Skip to content

Commit 2e18fc8

Browse files
Update cluster_topo.go
remove lock
1 parent 7538170 commit 2e18fc8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

cluster/cluster_topo.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ func (cluster *Cluster) newServerList() error {
7777
func (cluster *Cluster) AddChildServers() error {
7878

7979
mychilds := cluster.GetChildClusters()
80-
cluster.Lock()
81-
defer cluster.Unlock()
8280
for _, c := range mychilds {
8381
for _, sv := range c.Servers {
8482
cluster.LogModulePrintf(cluster.Conf.Verbose, config.ConstLogModTopology, LvlDbg, "AddChildServers checking %s of %s ", sv.URL, c.Name)

0 commit comments

Comments
 (0)