From 2c33410d0ac89917be25ce57696de2b6f2c99d00 Mon Sep 17 00:00:00 2001 From: a10zn8 Date: Fri, 17 Feb 2023 16:12:14 +0400 Subject: [PATCH] change max interval of ws reconnect to 1 minute (#142) --- .../emeraldpay/dshackle/upstream/ethereum/WsConnectionImpl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/WsConnectionImpl.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/WsConnectionImpl.kt index 1168e98f..e20ce4bd 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/WsConnectionImpl.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/WsConnectionImpl.kt @@ -90,7 +90,7 @@ open class WsConnectionImpl( private var reconnectBackoff: BackOff = ExponentialBackOff().also { it.initialInterval = Duration.ofMillis(100).toMillis() - it.maxInterval = Duration.ofMinutes(5).toMillis() + it.maxInterval = Duration.ofMinutes(1).toMillis() } private var currentBackOff = reconnectBackoff.start()