diff --git a/src/main/kotlin/dpozinen/deluge/DelugeController.kt b/src/main/kotlin/dpozinen/deluge/DelugeController.kt index 79a57ca2..ed1687ce 100644 --- a/src/main/kotlin/dpozinen/deluge/DelugeController.kt +++ b/src/main/kotlin/dpozinen/deluge/DelugeController.kt @@ -88,6 +88,7 @@ class DelugeController(private val service: DelugeService, template.convertAndSend("/topic/torrents", torrents.invoke()) } + @Suppress("EXPERIMENTAL_IS_NOT_ENABLED") @OptIn(ExperimentalCoroutinesApi::class) fun CoroutineScope.produceTorrents(): ReceiveChannel> = produce { repeat(900) { diff --git a/src/main/kotlin/dpozinen/deluge/DelugeTorrentConverter.kt b/src/main/kotlin/dpozinen/deluge/DelugeTorrentConverter.kt index 0c77a71e..f1570382 100644 --- a/src/main/kotlin/dpozinen/deluge/DelugeTorrentConverter.kt +++ b/src/main/kotlin/dpozinen/deluge/DelugeTorrentConverter.kt @@ -69,7 +69,6 @@ class DelugeTorrentConverter( } } - @Suppress("EXPERIMENTAL_IS_NOT_ENABLED") @OptIn(ExperimentalTime::class) private fun eta(eta: Double): String { diff --git a/src/main/kotlin/dpozinen/deluge/mutations/By.kt b/src/main/kotlin/dpozinen/deluge/mutations/By.kt index 26f562da..7dcabdd2 100644 --- a/src/main/kotlin/dpozinen/deluge/mutations/By.kt +++ b/src/main/kotlin/dpozinen/deluge/mutations/By.kt @@ -54,6 +54,7 @@ enum class By { val downloadSpeed = bySize() val uploadSpeed = bySize() + @Suppress("EXPERIMENTAL_IS_NOT_ENABLED") @OptIn(ExperimentalTime::class) val eta = ByComparable { if (it.isEmpty()) 0 else kotlin.time.Duration.parse(it).toLong(MINUTES) }