Difference between revisions of "Consensus aware (deprecated)"

From wikieduonline
Jump to navigation Jump to search
Line 3: Line 3:
 
  // If Consensus Aware is Set and Routing RoutingStrategy is populated fail
 
  // If Consensus Aware is Set and Routing RoutingStrategy is populated fail
 
  if b.ConsensusAware && b.RoutingStrategy != "" {
 
  if b.ConsensusAware && b.RoutingStrategy != "" {
  log.Warn("consensus_aware is now deprecated, please use routing_strategy = consensus_aware")
+
  log.Warn("consensus_aware is now deprecated, please use [[routing_strategy]] = consensus_aware")
 
  log.Crit("Exiting consensus_aware and routing strategy are mutually exclusive, they cannot both be defined")
 
  log.Crit("Exiting consensus_aware and routing strategy are mutually exclusive, they cannot both be defined")
 
  }
 
  }

Revision as of 16:09, 21 September 2024

consensus_aware

	// If Consensus Aware is Set and Routing RoutingStrategy is populated fail
	if b.ConsensusAware && b.RoutingStrategy != "" {
		log.Warn("consensus_aware is now deprecated, please use routing_strategy = consensus_aware")
		log.Crit("Exiting consensus_aware and routing strategy are mutually exclusive, they cannot both be defined")
	}

	// If Consensus Aware is Set set RoutingStrategy to consensus_aware
	if b.ConsensusAware {
		b.RoutingStrategy = ConsensusAwareRoutingStrategy
		log.Info("consensus_aware is now deprecated, please use routing_strategy = consenus_aware in the future")
	}


See also

Advertising: