mirror of
https://github.com/go-micro/go-micro.git
synced 2024-11-24 08:02:32 +02:00
Send solicit message to ControlChannel
This commit is contained in:
parent
195c6a8c90
commit
baf4c05663
@ -314,6 +314,7 @@ func (n *network) processNetChan(client transport.Client, listener tunnel.Listen
|
||||
if err := n.sendMsg("solicit", ControlChannel); err != nil {
|
||||
log.Debugf("Network failed to send solicit message: %s", err)
|
||||
}
|
||||
// after adding new peer go to the next step
|
||||
continue
|
||||
}
|
||||
// NOTE: we don't update max topology depth as we dont include this network node
|
||||
@ -598,7 +599,7 @@ func (n *network) processCtrlChan(client transport.Client, listener tunnel.Liste
|
||||
}
|
||||
n.peers[pbRtrAdvert.Id] = advertNode
|
||||
// send a solicit message when discovering a new node
|
||||
if err := n.sendMsg("solicit", NetworkChannel); err != nil {
|
||||
if err := n.sendMsg("solicit", ControlChannel); err != nil {
|
||||
log.Debugf("Network failed to send solicit message: %s", err)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user