Skip to content

Commit cef0c58

Browse files
committed
fine screw you
1 parent fc479bf commit cef0c58

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/kotlin/xyz/bluspring/unitytranslate/translator/library/TranslationModelDownloadQueue.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package xyz.bluspring.unitytranslate.translator.library
22

3-
import com.google.common.collect.Queues
43
import kotlinx.coroutines.runBlocking
54
import xyz.bluspring.unitytranslate.Language
65
import xyz.bluspring.unitytranslate.UnityTranslate
@@ -17,7 +16,7 @@ object TranslationModelDownloadQueue {
1716

1817
private val alreadyDownloaded = Collections.synchronizedSet(mutableSetOf<Pair<Language, Language>>())
1918

20-
private val queue = Queues.newSynchronousQueue<Pair<Language, Language>>()
19+
private val queue = ArrayDeque<Pair<Language, Language>>()
2120
@Volatile
2221
private var downloadThread: DownloadThread? = null
2322

0 commit comments

Comments
 (0)