Skip to content

Commit ee984b2

Browse files
committed
Fix thread pool creation
[#154174064] References #70
1 parent a73af02 commit ee984b2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/java/com/rabbitmq/perf/MulticastSet.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,7 @@ public ExecutorService executorService(String name, int nbThreads) {
220220
if (nbThreads <= 0) {
221221
return create(() -> Executors.newSingleThreadExecutor(new NamedThreadFactory(name)));
222222
} else {
223-
return create(() -> new ThreadPoolExecutor(nbThreads, nbThreads,
224-
60L, TimeUnit.SECONDS,
225-
new SynchronousQueue<>(),
226-
new NamedThreadFactory(name)));
223+
return create(() -> Executors.newFixedThreadPool(nbThreads, new NamedThreadFactory(name)));
227224
}
228225
}
229226

0 commit comments

Comments
 (0)