diff --git a/modules/model/src/main/java/net/pantasystem/milktea/model/instance/InstanceInfoService.kt b/modules/model/src/main/java/net/pantasystem/milktea/model/instance/InstanceInfoService.kt index 1d10796cc4..1af7c8113f 100644 --- a/modules/model/src/main/java/net/pantasystem/milktea/model/instance/InstanceInfoService.kt +++ b/modules/model/src/main/java/net/pantasystem/milktea/model/instance/InstanceInfoService.kt @@ -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 @@ -75,7 +74,7 @@ open class InstanceInfoService @Inject constructor( } } - @OptIn(FlowPreview::class, ExperimentalCoroutinesApi::class) + @OptIn(ExperimentalCoroutinesApi::class) open fun observe(instanceDomain: String): Flow { return suspend { nodeInfoRepository.find(URL(instanceDomain).host).getOrNull()