head lag observer throttling (#169)

This commit is contained in:
a10zn8
2023-03-17 17:57:19 +03:00
committed by GitHub
parent d34848fb87
commit 1ef8b7499c

View File

@@ -57,6 +57,7 @@ abstract class HeadLagObserver(
fun subscription(): Flux<Unit> {
return master.getFlux()
.sample(Duration.ofSeconds(5))
.flatMap(this::probeFollowers)
.map { item ->
item.t2.setLag(item.t1)