Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
pantasystem committed Aug 5, 2023
1 parent 079bcba commit df16ef4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package net.pantasystem.milktea.model.instance

import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.FlowPreview
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.asFlow
import kotlinx.coroutines.flow.flatMapLatest
Expand Down Expand Up @@ -75,7 +74,7 @@ open class InstanceInfoService @Inject constructor(
}
}

@OptIn(FlowPreview::class, ExperimentalCoroutinesApi::class)
@OptIn(ExperimentalCoroutinesApi::class)
open fun observe(instanceDomain: String): Flow<InstanceInfoType?> {
return suspend {
nodeInfoRepository.find(URL(instanceDomain).host).getOrNull()
Expand Down

0 comments on commit df16ef4

Please sign in to comment.