Fix rate limit interceptor call signatures

This commit is contained in:
arkon 2022-04-01 15:05:29 -04:00
parent 409488b4a2
commit 150ba5f7c5
2 changed files with 2 additions and 4 deletions

View File

@ -1,6 +1,5 @@
package eu.kanade.tachiyomi.network.interceptor
import okhttp3.Interceptor
import okhttp3.OkHttpClient
import java.util.concurrent.TimeUnit
@ -22,4 +21,4 @@ fun OkHttpClient.Builder.rateLimit(
permits: Int,
period: Long = 1,
unit: TimeUnit = TimeUnit.SECONDS,
): Interceptor = throw Exception("Stub!")
): OkHttpClient.Builder = throw Exception("Stub!")

View File

@ -1,7 +1,6 @@
package eu.kanade.tachiyomi.network.interceptor
import okhttp3.HttpUrl
import okhttp3.Interceptor
import okhttp3.OkHttpClient
import java.util.concurrent.TimeUnit
@ -25,4 +24,4 @@ fun OkHttpClient.Builder.rateLimitHost(
permits: Int,
period: Long = 1,
unit: TimeUnit = TimeUnit.SECONDS,
): Interceptor = throw Exception("Stub!")
): OkHttpClient.Builder = throw Exception("Stub!")