Use default maxSemaphore property.

Rather than hard code the default maxSemaphores for zuul use the already defined `zuul.semaphore.maxSemaphores` property. fixes gh-1332
parent 09c6bc1d
......@@ -68,7 +68,7 @@ public abstract class AbstractRibbonCommand<LBC extends AbstractLoadBalancerAwar
// we want to default to semaphore-isolation since this wraps
// 2 others commands that are already thread isolated
final DynamicIntProperty value = DynamicPropertyFactory.getInstance()
.getIntProperty(name, 100);
.getIntProperty(name, zuulProperties.getSemaphore().getMaxSemaphores());
setter.withExecutionIsolationSemaphoreMaxConcurrentRequests(value.get());
} else {
// TODO Find out is some parameters can be set here
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment