Skip to content

Commit 5f6156f

Browse files
committed
use method to condifure not static variable
Signed-off-by: Attila Mészáros <csviri@gmail.com>
1 parent 8ef6c81 commit 5f6156f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config/ConfigurationService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,11 @@ default Metrics getMetrics() {
200200
}
201201

202202
default ExecutorService getExecutorService() {
203-
return Executors.newFixedThreadPool(DEFAULT_RECONCILIATION_THREADS_NUMBER);
203+
return Executors.newFixedThreadPool(concurrentReconciliationThreads());
204204
}
205205

206206
default ExecutorService getWorkflowExecutorService() {
207-
return Executors.newFixedThreadPool(DEFAULT_WORKFLOW_EXECUTOR_THREAD_NUMBER);
207+
return Executors.newFixedThreadPool(concurrentWorkflowExecutorThreads());
208208
}
209209

210210
default boolean closeClientOnStop() {

0 commit comments

Comments
 (0)