|
@@ -1110,8 +1110,8 @@ func (n *network) getSvcRecords(ep *endpoint) []etchosts.Record {
|
|
epName := ep.Name()
|
|
epName := ep.Name()
|
|
|
|
|
|
n.ctrlr.Lock()
|
|
n.ctrlr.Lock()
|
|
|
|
+ defer n.ctrlr.Unlock()
|
|
sr, _ := n.ctrlr.svcRecords[n.id]
|
|
sr, _ := n.ctrlr.svcRecords[n.id]
|
|
- n.ctrlr.Unlock()
|
|
|
|
|
|
|
|
for h, ip := range sr.svcMap {
|
|
for h, ip := range sr.svcMap {
|
|
if strings.Split(h, ".")[0] == epName {
|
|
if strings.Split(h, ".")[0] == epName {
|