From c4e7d458c104f5d39aad9fc96a7d0e939cc43cb0 Mon Sep 17 00:00:00 2001 From: vincent Date: Wed, 29 Apr 2020 16:23:25 +0800 Subject: [PATCH] update Code --- .../java/per/goweii/rxhttp/kt/request/RequestClientManager.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rxhttp_kt/src/main/java/per/goweii/rxhttp/kt/request/RequestClientManager.kt b/rxhttp_kt/src/main/java/per/goweii/rxhttp/kt/request/RequestClientManager.kt index 846d1c2..027a51b 100644 --- a/rxhttp_kt/src/main/java/per/goweii/rxhttp/kt/request/RequestClientManager.kt +++ b/rxhttp_kt/src/main/java/per/goweii/rxhttp/kt/request/RequestClientManager.kt @@ -32,9 +32,7 @@ object RequestClientManager:BaseClientManager() { var mRetrofit: Retrofit = create() private val mRetrofitMap = HashMap, Retrofit>() - private val mOkHttpClient by lazy { - createOkHttpClient() - } + private val mOkHttpClient = createOkHttpClient() override fun create(): Retrofit { return create(RxHttp.getRequestSetting()?.getBaseUrl()!!) }