The configuration object must not be modified.
This commit is contained in:
parent
9129bfa284
commit
5dacf9c3f5
@ -551,8 +551,7 @@ class LoadBalancerPlugin {
|
|||||||
|
|
||||||
if (plans) {
|
if (plans) {
|
||||||
for (const plan of plans) {
|
for (const plan of plans) {
|
||||||
plan.mode = plan.mode ? PERFORMANCE_MODE : DENSITY_MODE
|
this._addPlan(plan.mode ? PERFORMANCE_MODE : DENSITY_MODE, plan)
|
||||||
this._addPlan(plan)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -569,7 +568,7 @@ class LoadBalancerPlugin {
|
|||||||
this._job.cron.stop()
|
this._job.cron.stop()
|
||||||
}
|
}
|
||||||
|
|
||||||
_addPlan ({ name, mode, pools, ...options }) {
|
_addPlan (mode, { name, pools, ...options }) {
|
||||||
pools = uniq(pools)
|
pools = uniq(pools)
|
||||||
|
|
||||||
// Check already used pools.
|
// Check already used pools.
|
||||||
|
Loading…
Reference in New Issue
Block a user