Skip to content

Commit

Permalink
refactor: make discoverServers a normal method
Browse files Browse the repository at this point in the history
  • Loading branch information
jarnedemeulemeester committed Dec 8, 2024
1 parent e13e605 commit d688317
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class SetupRepositoryImpl(
private val database: ServerDatabaseDao,
private val appPreferences: AppPreferences,
) : SetupRepository {
override suspend fun discoverServers(): Flow<ServerDiscoveryInfo> {
override fun discoverServers(): Flow<ServerDiscoveryInfo> {
return jellyfinApi.jellyfin.discovery.discoverLocalServers()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import org.jellyfin.sdk.model.api.ServerDiscoveryInfo
import java.util.UUID

interface SetupRepository {
suspend fun discoverServers(): Flow<ServerDiscoveryInfo>
fun discoverServers(): Flow<ServerDiscoveryInfo>

suspend fun getServers(): List<ServerWithAddresses>

Expand Down

0 comments on commit d688317

Please sign in to comment.