Uses the cached pool instead of the scheduled pool for translation services.

pull/819/head
Vitor Pamplona 2024-03-26 08:34:45 -04:00
rodzic 0182011487
commit fa4745038f
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -45,7 +45,7 @@ data class ResultOrError(
)
object LanguageTranslatorService {
var executorService = Executors.newScheduledThreadPool(5)
var executorService = Executors.newCachedThreadPool()
private val options =
LanguageIdentificationOptions.Builder()