code: func (dp *LocalProvider) CreateLocalDiscoveryService(mspID string) (fab.DiscoveryService, error) {
  	peers := []fab.Peer{}
  	netPeers := dp.config.NetworkPeers()
  
  	logger.Debugf("Found %d peers", len(netPeers))
  
  	for _, p := range netPeers {
  		newPeer, err := dp.fabPvdr.CreatePeerFromConfig(&fab.NetworkPeer{PeerConfig: p.PeerConfig, MSPID: p.MSPID})
  		if err != nil {
  			return nil, errors.WithMessage(err, "NewPeerFromConfig failed")
  		}
  		if newPeer.MSPID() == mspID {
  			logger.Debugf("Adding local peer [%s] for MSP [%s]", newPeer.URL(), mspID)
  			peers = append(peers, newPeer)
  		}
  	}
  
  	return &localDiscoveryService{config: dp.config, peers: peers}, nil
  }
docs: // CreateLocalDiscoveryService return a local discovery service