Skip to content

Commit

Permalink
supress warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dpozinen committed May 23, 2022
1 parent 90b4352 commit c041c35
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/kotlin/dpozinen/deluge/DelugeController.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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<List<DelugeTorrent>> = produce {
repeat(900) {
Expand Down
1 change: 0 additions & 1 deletion src/main/kotlin/dpozinen/deluge/DelugeTorrentConverter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ class DelugeTorrentConverter(
}
}


@Suppress("EXPERIMENTAL_IS_NOT_ENABLED")
@OptIn(ExperimentalTime::class)
private fun eta(eta: Double): String {
Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/dpozinen/deluge/mutations/By.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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) }

Expand Down

0 comments on commit c041c35

Please sign in to comment.