build_strategy

Function build_strategy 

Source
pub fn build_strategy(cfg: &DiscoveryConfig) -> Box<dyn NeighborProbeStrategy>
Expand description

Construct the appropriate NeighborProbeStrategy for the given config.

The mapping follows HelloStrategyKind:

KindScheduler
BackoffBackoffScheduler
ReactiveReactiveScheduler
PassivePassiveScheduler (falls back to backoff when idle)
SwimBackoffScheduler (SWIM strategy not yet implemented)