1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-18 22:17:44 +02:00

A variety of fixes to try combat the multicast issue

This commit is contained in:
Asim Aslam
2019-12-01 19:36:16 +00:00
parent 6f1c30aef5
commit c840cee404
4 changed files with 17 additions and 17 deletions

View File

@ -939,17 +939,17 @@ func (n *network) Connect() error {
log.Debugf("Network failed to resolve nodes: %v", err)
}
// initialize the tunnel to resolved nodes
n.tunnel.Init(
tunnel.Nodes(nodes...),
)
// connect network tunnel
if err := n.tunnel.Connect(); err != nil {
n.Unlock()
return err
}
// initialize the tunnel to resolved nodes
n.tunnel.Init(
tunnel.Nodes(nodes...),
)
// return if already connected
if n.connected {
// unlock first