mirror of
https://github.com/tachiyomiorg/extensions-lib.git
synced 2024-11-16 16:29:19 +01:00
Fix rate limit interceptor call signatures
This commit is contained in:
parent
409488b4a2
commit
150ba5f7c5
@ -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!")
|
@ -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!")
|
||||
|
Loading…
Reference in New Issue
Block a user