From 150ba5f7c56c954c5ca3d0b2cfc5a974aa35f766 Mon Sep 17 00:00:00 2001 From: arkon Date: Fri, 1 Apr 2022 15:05:29 -0400 Subject: [PATCH] Fix rate limit interceptor call signatures --- .../tachiyomi/network/interceptor/RateLimitInterceptor.kt | 3 +-- .../network/interceptor/SpecificHostRateLimitInterceptor.kt | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/library/src/main/java/eu/kanade/tachiyomi/network/interceptor/RateLimitInterceptor.kt b/library/src/main/java/eu/kanade/tachiyomi/network/interceptor/RateLimitInterceptor.kt index bbe5ada..3e0ac53 100644 --- a/library/src/main/java/eu/kanade/tachiyomi/network/interceptor/RateLimitInterceptor.kt +++ b/library/src/main/java/eu/kanade/tachiyomi/network/interceptor/RateLimitInterceptor.kt @@ -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!") \ No newline at end of file +): OkHttpClient.Builder = throw Exception("Stub!") \ No newline at end of file diff --git a/library/src/main/java/eu/kanade/tachiyomi/network/interceptor/SpecificHostRateLimitInterceptor.kt b/library/src/main/java/eu/kanade/tachiyomi/network/interceptor/SpecificHostRateLimitInterceptor.kt index 6f7090c..fffeb5b 100644 --- a/library/src/main/java/eu/kanade/tachiyomi/network/interceptor/SpecificHostRateLimitInterceptor.kt +++ b/library/src/main/java/eu/kanade/tachiyomi/network/interceptor/SpecificHostRateLimitInterceptor.kt @@ -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!")