mirror of
https://github.com/tachiyomiorg/extensions-lib.git
synced 2025-02-21 05:52:04 +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
|
package eu.kanade.tachiyomi.network.interceptor
|
||||||
|
|
||||||
import okhttp3.Interceptor
|
|
||||||
import okhttp3.OkHttpClient
|
import okhttp3.OkHttpClient
|
||||||
import java.util.concurrent.TimeUnit
|
import java.util.concurrent.TimeUnit
|
||||||
|
|
||||||
@ -22,4 +21,4 @@ fun OkHttpClient.Builder.rateLimit(
|
|||||||
permits: Int,
|
permits: Int,
|
||||||
period: Long = 1,
|
period: Long = 1,
|
||||||
unit: TimeUnit = TimeUnit.SECONDS,
|
unit: TimeUnit = TimeUnit.SECONDS,
|
||||||
): Interceptor = throw Exception("Stub!")
|
): OkHttpClient.Builder = throw Exception("Stub!")
|
@ -1,7 +1,6 @@
|
|||||||
package eu.kanade.tachiyomi.network.interceptor
|
package eu.kanade.tachiyomi.network.interceptor
|
||||||
|
|
||||||
import okhttp3.HttpUrl
|
import okhttp3.HttpUrl
|
||||||
import okhttp3.Interceptor
|
|
||||||
import okhttp3.OkHttpClient
|
import okhttp3.OkHttpClient
|
||||||
import java.util.concurrent.TimeUnit
|
import java.util.concurrent.TimeUnit
|
||||||
|
|
||||||
@ -25,4 +24,4 @@ fun OkHttpClient.Builder.rateLimitHost(
|
|||||||
permits: Int,
|
permits: Int,
|
||||||
period: Long = 1,
|
period: Long = 1,
|
||||||
unit: TimeUnit = TimeUnit.SECONDS,
|
unit: TimeUnit = TimeUnit.SECONDS,
|
||||||
): Interceptor = throw Exception("Stub!")
|
): OkHttpClient.Builder = throw Exception("Stub!")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user