all: misc cleanup

This commit is contained in:
Alexander Capehart
2024-12-13 11:35:24 -07:00
parent 993dbbf8c1
commit 93a602b592
2 changed files with 3 additions and 6 deletions
@@ -26,7 +26,6 @@ import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.sync.Mutex
import kotlinx.coroutines.sync.withLock
import kotlinx.coroutines.withContext
import timber.log.Timber as L
internal interface CoverFiles {
suspend fun read(id: String): InputStream?
@@ -39,10 +38,8 @@ internal interface CoverFiles {
}
}
private class CoverFilesImpl(
private val dir: File,
private val coverFormat: CoverFormat
) : CoverFiles {
private class CoverFilesImpl(private val dir: File, private val coverFormat: CoverFormat) :
CoverFiles {
private val fileMutexes = mutableMapOf<String, Mutex>()
private val mapMutex = Mutex()