diff --git a/server/src/main/kotlin/eu/kanade/tachiyomi/extension/api/ExtensionGithubApi.kt b/server/src/main/kotlin/eu/kanade/tachiyomi/extension/api/ExtensionGithubApi.kt index 561a170..1608a33 100644 --- a/server/src/main/kotlin/eu/kanade/tachiyomi/extension/api/ExtensionGithubApi.kt +++ b/server/src/main/kotlin/eu/kanade/tachiyomi/extension/api/ExtensionGithubApi.kt @@ -40,7 +40,7 @@ object ExtensionGithubApi { } } - fun findExtensions(): List { + suspend fun findExtensions(): List { val service: ExtensionGithubService = ExtensionGithubService.create() val response = service.getRepo() diff --git a/server/src/main/kotlin/eu/kanade/tachiyomi/extension/api/ExtensionGithubService.kt b/server/src/main/kotlin/eu/kanade/tachiyomi/extension/api/ExtensionGithubService.kt index 7aedeb6..5c33012 100644 --- a/server/src/main/kotlin/eu/kanade/tachiyomi/extension/api/ExtensionGithubService.kt +++ b/server/src/main/kotlin/eu/kanade/tachiyomi/extension/api/ExtensionGithubService.kt @@ -42,5 +42,5 @@ interface ExtensionGithubService { } @GET("${ExtensionGithubApi.REPO_URL_PREFIX}/index.json.gz") - fun getRepo(): JsonArray + suspend fun getRepo(): JsonArray }