We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1bd929 commit 77f54c2Copy full SHA for 77f54c2
pkg/cluster/spec/monitoring.go
@@ -271,6 +271,7 @@ func (i *MonitorInstance) InitConfig(
271
for i := 0; i < servers.Len(); i++ {
272
master := reflect.Indirect(servers.Index(i))
273
host, port := master.FieldByName("Host").String(), master.FieldByName("Port").Int()
274
+ uniqueHosts.Insert(host)
275
cfig.AddDMMaster(host, uint64(port))
276
}
277
@@ -279,6 +280,7 @@ func (i *MonitorInstance) InitConfig(
279
280
281
worker := reflect.Indirect(servers.Index(i))
282
host, port := worker.FieldByName("Host").String(), worker.FieldByName("Port").Int()
283
284
cfig.AddDMWorker(host, uint64(port))
285
286
0 commit comments