func (peer *localPeer) broadcastPeerUpdate(peers ...*Peer) {
	// Some tests run without a router.  This should be fixed so
	// that the relevant part of Router can be easily run in the
	// context of a test, but that will involve significant
	// reworking of tests.
	if peer.router != nil {
		peer.router.broadcastTopologyUpdate(append(peers, peer.Peer))
	}
}
func (peer *localPeer) broadcastPeerUpdate(peers ...*Peer) {
	
	
	
	
	if peer.router != nil {
		peer.router.broadcastTopologyUpdate(append(peers, peer.Peer))
	}
}
func ( peer * localPeer ) broadcastPeerUpdate ( peers ... * Peer ) { // Some tests run without a router.  This should be fixed so // that the relevant part of Router can be easily run in the // context of a test, but that will involve significant // reworking of tests. if peer . router != nil { peer . router . broadcastTopologyUpdate ( append ( peers , peer . Peer ) ) } }
// helpers
helpers