Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: jansupol <jan.supol@oracle.com>
  • Loading branch information
jansupol committed May 21, 2024
1 parent e7b7f61 commit 48b9132
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ public static HttpServer createHttpServer(final URI uri,
final ThreadFactory threadFactory = new ThreadFactoryBuilder()
.setNameFormat("grizzly-http-server-%d")
.setUncaughtExceptionHandler(new JerseyProcessingUncaughtExceptionHandler())
.setThreadFactory(VirtualThreadUtil.withConfig(configuration, false).getThreadFactory())
.setThreadFactory(executors.getThreadFactory())
.build();

if (executors.isVirtual()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,6 @@ public static LoomishExecutors withConfig(Configuration config, boolean useVirtu
: VirtualThreadSupport.allowVirtual(useVirtualThreads, tfThreadFactory);
}

/**
* Check configuration if the use of the virtual threads is expected or return the default value if not.
* @param config the {@link Configuration}
* @return the expected
*/
private static boolean useVirtualThreads(Configuration config) {
return useVirtualThreads(config, USE_VIRTUAL_THREADS_BY_DEFAULT);
}

/**
* Check configuration if the use of the virtual threads is expected or return the default value if not.
* @param config the {@link Configuration}
Expand Down

0 comments on commit 48b9132

Please sign in to comment.