From d30e4236d1c96d8084a0387e8ffe27cb7aef3da9 Mon Sep 17 00:00:00 2001 From: Maksim Fomenkov Date: Mon, 10 Oct 2022 14:40:14 +0300 Subject: [PATCH] remove redundant code --- .../dshackle/upstream/ethereum_pos/EthereumPosMultiStream.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum_pos/EthereumPosMultiStream.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum_pos/EthereumPosMultiStream.kt index 007d9a28..959b3485 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum_pos/EthereumPosMultiStream.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum_pos/EthereumPosMultiStream.kt @@ -37,7 +37,6 @@ import org.springframework.context.Lifecycle import org.springframework.util.ConcurrentReferenceHashMap import reactor.core.publisher.Flux import reactor.core.publisher.Mono -import java.util.concurrent.locks.ReentrantLock @Suppress("UNCHECKED_CAST") open class EthereumPosMultiStream( @@ -57,7 +56,6 @@ open class EthereumPosMultiStream( private val subscribe = EthereumSubscribe(this) private val filteredHeads: MutableMap = ConcurrentReferenceHashMap(16, ConcurrentReferenceHashMap.ReferenceType.WEAK) - private val lock = ReentrantLock() init { this.init()