Code cleanup

This commit is contained in:
Robinson 2023-06-29 19:53:31 +02:00
parent 7281cdb9f4
commit 835ae99e9c
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C

View File

@ -585,7 +585,7 @@ open class Client<CONNECTION : Connection>(
logger.info { "Creating new handshake to $logInfo" }
}
connect0(handshake, handshakeConnection, handshakeTimeoutSec, connectionCloseTimeoutInSeconds, connectLatch)
connect0(handshake, handshakeConnection, handshakeTimeoutSec)
success = true
slowDownForException = false
@ -665,13 +665,7 @@ open class Client<CONNECTION : Connection>(
// the handshake process might have to restart this connection process.
private suspend fun connect0(
handshake: ClientHandshake<CONNECTION>,
handshakeConnection: ClientHandshakeDriver,
connectionTimeoutSec: Int,
connectionCloseTimeoutInSeconds: Long,
connectLatch: CountDownLatch
) {
private suspend fun connect0(handshake: ClientHandshake<CONNECTION>, handshakeConnection: ClientHandshakeDriver, connectionTimeoutSec: Int) {
// this will block until the connection timeout, and throw an exception if we were unable to connect with the server