code: func (s *selectionFilter) asPeerValue(endpoint *discclient.Peer) fab.Peer {
  	url := endpoint.AliveMessage.GetAliveMsg().GetMembership().Endpoint
  
  	// Get the mapped URL of the peer
  	peerConfig, found := s.ctx.EndpointConfig().PeerConfig(url)
  	if found {
  		url = peerConfig.URL
  	} else {
  		logger.Debugf("Peer config not found for url [%s]", url)
  	}
  
  	return &peerEndpointValue{
  		mspID:       endpoint.MSPID,
  		url:         url,
  		blockHeight: endpoint.StateInfoMessage.GetStateInfo().GetProperties().LedgerHeight,
  	}
  }
docs: // asPeerValue converts the discovery endpoint into a light-weight peer value (i.e. without the GRPC config)
  // so that it may used by a peer filter