Merge pull request #271 from bboreham/258_rebuild_routes
Move call to Topology.RebuildRoutes Closes #258
This commit is contained in:
commit
8dfdeb3eff
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -389,13 +389,13 @@ func (peer *Peer) handleConnectionEstablished(conn *LocalConnection) {
|
||||
}
|
||||
|
||||
func (peer *Peer) handleBroadcastTCP(msg []byte) {
|
||||
peer.Router.Topology.RebuildRoutes()
|
||||
peer.ForEachConnection(func(_ PeerName, conn Connection) {
|
||||
conn.(*LocalConnection).SendTCP(msg)
|
||||
})
|
||||
}
|
||||
|
||||
func (peer *Peer) broadcastPeerUpdate(peers ...*Peer) {
|
||||
peer.Router.Topology.RebuildRoutes()
|
||||
peer.handleBroadcastTCP(Concat(ProtocolUpdateByte, EncodePeers(append(peers, peer)...)))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user