don't ask check productionServerUrl on init (EA-890991 T: HttpRequests.process)

GitOrigin-RevId: fb7f94a943a4719c6256ae0cc5c6159562dc9264
This commit is contained in:
Sergey Pak
2023-07-27 20:47:44 +00:00
committed by intellij-monorepo-bot
parent a09e0e1b5f
commit ad42c64a20
@@ -28,10 +28,10 @@ internal const val SETTINGS_SYNC_SNAPSHOT_ZIP = "$SETTINGS_SYNC_SNAPSHOT.zip"
private const val CONNECTION_TIMEOUT_MS = 10000
private const val READ_TIMEOUT_MS = 50000
internal open class CloudConfigServerCommunicator(serverUrl: String = defaultUrl) : SettingsSyncRemoteCommunicator {
internal open class CloudConfigServerCommunicator(serverUrl: String? = null) : SettingsSyncRemoteCommunicator {
internal open val client get() = _client.value
private val _client = lazy { createCloudConfigClient(serverUrl, clientVersionContext) }
private val _client = lazy { createCloudConfigClient(serverUrl ?: defaultUrl, clientVersionContext) }
protected val clientVersionContext = CloudConfigVersionContext()
private val lastRemoteErrorRef = AtomicReference<Throwable>()