mirror of
https://github.com/square/okhttp.git
synced 2025-08-08 23:42:08 +03:00
Fix merge conflicts after spotless applied (#4933)
This commit is contained in:
@@ -150,7 +150,7 @@ class LoggingEventListener private constructor(
|
||||
open class Factory @JvmOverloads constructor(
|
||||
private val logger: HttpLoggingInterceptor.Logger = HttpLoggingInterceptor.Logger.DEFAULT
|
||||
) : EventListener.Factory {
|
||||
constructor(block: (string: String) -> Unit): this(HttpLoggingInterceptor.Logger(block))
|
||||
constructor(block: (string: String) -> Unit) : this(HttpLoggingInterceptor.Logger(block))
|
||||
|
||||
override fun create(call: Call): EventListener = LoggingEventListener(logger)
|
||||
}
|
||||
|
@@ -16,4 +16,4 @@
|
||||
@file:JvmName("Version")
|
||||
package okhttp3.internal
|
||||
|
||||
const val userAgent = "okhttp/${projectVersion}"
|
||||
const val userAgent = "okhttp/$projectVersion"
|
||||
|
@@ -253,7 +253,7 @@ class RealConnectionPool(
|
||||
private val executor = ThreadPoolExecutor(
|
||||
0, // corePoolSize.
|
||||
Int.MAX_VALUE, // maximumPoolSize.
|
||||
60L, TimeUnit.SECONDS, // keepAliveTime.
|
||||
60L, TimeUnit.SECONDS, // keepAliveTime.
|
||||
SynchronousQueue(),
|
||||
Util.threadFactory("OkHttp ConnectionPool", true)
|
||||
)
|
||||
|
Reference in New Issue
Block a user