routing: extract probability estimator cfg and add validation
In preparation for allowing live update of mc config, we extract our probability estimator cfg for easy update and add validation.
This commit is contained in:
7 files changed
+116
-50
No files matched your search
@@ -58,9 +58,11 @@ func newIntegratedRoutingContext(t *testing.T) *integratedRoutingContext {
|
||||
finalExpiry: 40,
|
||||
|
||||
mcCfg: MissionControlConfig{
|
||||
PenaltyHalfLife: 30 * time.Minute,
|
||||
AprioriHopProbability: 0.6,
|
||||
AprioriWeight: 0.5,
|
||||
ProbabilityEstimatorCfg: ProbabilityEstimatorCfg{
|
||||
PenaltyHalfLife: 30 * time.Minute,
|
||||
AprioriHopProbability: 0.6,
|
||||
AprioriWeight: 0.5,
|
||||
},
|
||||
},
|
||||
|
||||
pathFindingCfg: PathFindingConfig{
|
||||
|
||||
Reference in new issue
Block a user