diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/HeadLagObserver.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/HeadLagObserver.kt index a1c61c2f..7138c6b2 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/HeadLagObserver.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/HeadLagObserver.kt @@ -57,6 +57,7 @@ abstract class HeadLagObserver( fun subscription(): Flux { return master.getFlux() + .sample(Duration.ofSeconds(5)) .flatMap(this::probeFollowers) .map { item -> item.t2.setLag(item.t1)