mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-27 18:46:39 +02:00
No need for this OkHttp log anymore
This commit is contained in:
@@ -20,12 +20,6 @@
|
|||||||
*/
|
*/
|
||||||
package com.vitorpamplona.amethyst.service.okhttp
|
package com.vitorpamplona.amethyst.service.okhttp
|
||||||
|
|
||||||
import android.util.Log
|
|
||||||
import com.vitorpamplona.amethyst.isDebug
|
|
||||||
import kotlinx.coroutines.Dispatchers
|
|
||||||
import kotlinx.coroutines.GlobalScope
|
|
||||||
import kotlinx.coroutines.delay
|
|
||||||
import kotlinx.coroutines.launch
|
|
||||||
import okhttp3.Dispatcher
|
import okhttp3.Dispatcher
|
||||||
import okhttp3.OkHttpClient
|
import okhttp3.OkHttpClient
|
||||||
import java.net.InetSocketAddress
|
import java.net.InetSocketAddress
|
||||||
@@ -51,6 +45,8 @@ class OkHttpClientFactory(
|
|||||||
maxRequests = 512
|
maxRequests = 512
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
DEBUG OK HTTP connections here.
|
||||||
init {
|
init {
|
||||||
if (isDebug) {
|
if (isDebug) {
|
||||||
GlobalScope.launch(Dispatchers.IO) {
|
GlobalScope.launch(Dispatchers.IO) {
|
||||||
@@ -61,6 +57,7 @@ class OkHttpClientFactory(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
private val rootClient =
|
private val rootClient =
|
||||||
OkHttpClient
|
OkHttpClient
|
||||||
|
Reference in New Issue
Block a user