Skip to content

Commit ae23720

Browse files
committed
parallelism test
1 parent eb35253 commit ae23720

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/org/scm4j/releaser/Utils.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ public final class Utils {
2323
public static final String DELAYED_TAGS_FILE_NAME = "delayed-tags.yml";
2424
public static final File BASE_WORKING_DIR = new File(System.getProperty("user.home"), ".scm4j");
2525

26-
private static final int THREADS_AMOUNT = 64;
27-
2826
public static <T> T reportDuration(Supplier<T> sup, String message, Component comp, IProgress progress) {
2927
if (progress == null) {
3028
return sup.get();
@@ -44,9 +42,9 @@ public static <T> void reportDuration(Runnable run, String message, Component co
4442
}
4543

4644
public static <T> void async(Collection<T> collection, Consumer<? super T> action) {
47-
async(collection, action, new ForkJoinPool(THREADS_AMOUNT));
45+
async(collection, action, ForkJoinPool.commonPool());
4846
}
49-
47+
5048
public static <T> void async(Collection<T> collection, Consumer<? super T> action, ForkJoinPool pool) {
5149
if (collection.isEmpty()) {
5250
return;

0 commit comments

Comments
 (0)