File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/main/java/org/airpenthouse/GoTel Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,9 @@ private Set<? extends CountriesRequestCombiner> getAllCountries() {
2626
2727 private Set <? extends CountriesRequestCombiner > getRequest () {
2828 if (checkMemberShipStatusAndTokenMatch ())
29- return initializeCountriesEntity ().stream ().map (mapper ::mapper ).collect (Collectors .toSet ());
30- else
3129 return initializeCountriesEntity ().stream ().map (mapper ::mapToMembershipCountryRequest ).collect (Collectors .toSet ());
30+ else
31+ return initializeCountriesEntity ().stream ().map (mapper ::mapper ).collect (Collectors .toSet ());
3232 }
3333
3434 private Set <? extends CountriesRequestCombiner > getCountryByName () {
Original file line number Diff line number Diff line change @@ -30,10 +30,10 @@ private ExecutorService determineNoThreadToUse() {
3030 Members with registered successful uses more threads than non membership
3131 */
3232 if (checkMemberShipStatusAndTokenMatch ()) {
33- final var noProcesses = Runtime .getRuntime ().availableProcessors ();
33+ final var noProcesses = Runtime .getRuntime ().availableProcessors () * 2 ;
3434 executeCountries = Executors .newFixedThreadPool (noProcesses );
3535 } else {
36- final var noProcesses = Runtime .getRuntime ().availableProcessors () * 2 ;
36+ final var noProcesses = Runtime .getRuntime ().availableProcessors () ;
3737 executeCountries = Executors .newFixedThreadPool (noProcesses );
3838 }
3939 return executeCountries ;
You can’t perform that action at this time.
0 commit comments