code: func (s *DiscoveryWrapper) GetPeers() ([]fab.Peer, error) {
  	var eventEndpoints []fab.Peer
  
  	peers, err := s.DiscoveryService.GetPeers()
  	if err != nil {
  		return nil, err
  	}
  
  	for _, peer := range peers {
  
  		var peerConfig *fab.PeerConfig
  		var found bool
  
  		chPeer := s.getChannelPeer(peer.URL())
  		if chPeer != nil {
  			peerConfig = &chPeer.PeerConfig
  		} else {
  			peerConfig, found = s.ctx.EndpointConfig().PeerConfig(peer.URL())
  			if !found {
  				continue
  			}
  			chPeer = s.getChannelPeer(peerConfig.URL)
  		}
  
  		logger.Debugf("Channel peer config for [%s]: %#v", peer.URL(), chPeer)
  
  		if chPeer != nil && !chPeer.EventSource {
  			logger.Debugf("Excluding peer [%s] since it is not configured as an event source", peer.URL())
  			continue
  		}
  
  		eventEndpoint := FromPeerConfig(s.ctx.EndpointConfig(), peer, peerConfig)
  		eventEndpoints = append(eventEndpoints, eventEndpoint)
  	}
  
  	return eventEndpoints, nil
  }
docs: // GetPeers returns the discovered peers