Use default maxSemaphore property.
Rather than hard code the default maxSemaphores for zuul use the already defined `zuul.semaphore.maxSemaphores` property. fixes gh-1332
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user