func (router *Router) broadcastTopologyUpdate(update []*Peer) {
	names := make(peerNameSet)
	for _, p := range update {
		names[p.Name] = struct{}{}
	}
	router.topologyGossip.GossipBroadcast(&topologyGossipData{peers: router.Peers, update: names})
}
func (router *Router) broadcastTopologyUpdate(update []*Peer) {
	names := make(peerNameSet)
	for _, p := range update {
		names[p.Name] = struct{}{}
	}
	router.topologyGossip.GossipBroadcast(&topologyGossipData{peers: router.Peers, update: names})
}
func ( router * Router ) broadcastTopologyUpdate ( update [ ] * Peer ) { names := make ( peerNameSet ) for _ , p := range update { names [ p . Name ] = struct { } { } } router . topologyGossip . GossipBroadcast ( & topologyGossipData { peers : router . Peers , update : names } ) }
// BroadcastTopologyUpdate is invoked whenever there is a change to the mesh
// topology, and broadcasts the new set of peers to the mesh.
BroadcastTopologyUpdate is invoked whenever there is a change to the mesh topology and broadcasts the new set of peers to the mesh .