diff --git a/libpaiman/src/main/kotlin/de/x4fyr/paiman/lib/services/MainServiceImpl.kt b/libpaiman/src/main/kotlin/de/x4fyr/paiman/lib/services/MainServiceImpl.kt index 7396ce8..0264227 100644 --- a/libpaiman/src/main/kotlin/de/x4fyr/paiman/lib/services/MainServiceImpl.kt +++ b/libpaiman/src/main/kotlin/de/x4fyr/paiman/lib/services/MainServiceImpl.kt @@ -24,11 +24,9 @@ internal class MainServiceImpl(private var paintingCRUDAdapter: PaintingCRUDAdap private val dummyPicture = Picture("dummy") - @Synchronized override suspend fun get(id: String): SavedPainting = paintingCRUDAdapter.read(id) ?: throw ServiceException( "Could not get painting with id $id") - @Synchronized override suspend fun getAll(ids: Set): Set = paintingCRUDAdapter.read(ids) @Synchronized @@ -125,11 +123,9 @@ internal class MainServiceImpl(private var paintingCRUDAdapter: PaintingCRUDAdap paintingCRUDAdapter.update(painting.copy(tags = painting.tags - tags)) ?: throw ServiceException("Could not remove tags") - @Synchronized override suspend fun getPictureStream(picture: Picture): InputStream = storageAdapter.getImage(picture.id) - @Synchronized override suspend fun getFromQueryResult(queryEnumerator: QueryEnumerator): Set = getAll( queryEnumerator.map { it.key.toString() }.toSet())