mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2024-10-01 17:30:50 +00:00
Uses the cached pool instead of the scheduled pool for translation services.
This commit is contained in:
parent
0182011487
commit
fa4745038f
@ -45,7 +45,7 @@ data class ResultOrError(
|
|||||||
)
|
)
|
||||||
|
|
||||||
object LanguageTranslatorService {
|
object LanguageTranslatorService {
|
||||||
var executorService = Executors.newScheduledThreadPool(5)
|
var executorService = Executors.newCachedThreadPool()
|
||||||
|
|
||||||
private val options =
|
private val options =
|
||||||
LanguageIdentificationOptions.Builder()
|
LanguageIdentificationOptions.Builder()
|
||||||
|
Loading…
Reference in New Issue
Block a user