code: func ModifiedDiscoverySettings(config *Config, backendType, advertise string, clusterOpts map[string]string) bool {
  	if config.ClusterStore != backendType || config.ClusterAdvertise != advertise {
  		return true
  	}
  
  	if (config.ClusterOpts == nil && clusterOpts == nil) ||
  		(config.ClusterOpts == nil && len(clusterOpts) == 0) ||
  		(len(config.ClusterOpts) == 0 && clusterOpts == nil) {
  		return false
  	}
  
  	return !reflect.DeepEqual(config.ClusterOpts, clusterOpts)
  }
docs: // ModifiedDiscoverySettings returns whether the discovery configuration has been modified or not.