diff --git a/network/src/main/scala/no/ndla/network/tapir/Routes.scala b/network/src/main/scala/no/ndla/network/tapir/Routes.scala index 9d795fed5..08d76d9d9 100644 --- a/network/src/main/scala/no/ndla/network/tapir/Routes.scala +++ b/network/src/main/scala/no/ndla/network/tapir/Routes.scala @@ -123,8 +123,7 @@ trait Routes[F[_]] { } def startJdkServer(name: String, port: Int)(warmupFunc: => Unit): IO[Unit] = { -// val executor: ExecutorService = Executors.newVirtualThreadPerTaskExecutor() - val executor: ExecutorService = Executors.newWorkStealingPool(100) + val executor: ExecutorService = Executors.newVirtualThreadPerTaskExecutor() val rejectInterceptor = new RejectInterceptor[Id](NdlaRejectHandler[Id]()) val exceptionInterceptor = new ExceptionInterceptor[Id](NdlaExceptionHandler[Id]()) val decodeFailureInterceptor = new DecodeFailureInterceptor[Id](decodeFailureHandler)