Clients stream should be sequentially concated (#187)
* Clients stream should be sequentially concated * remove debug log
This commit is contained in:
@@ -61,7 +61,6 @@ abstract class HeadLagObserver(
|
|||||||
.sample(throttling)
|
.sample(throttling)
|
||||||
.flatMap(this::probeFollowers)
|
.flatMap(this::probeFollowers)
|
||||||
.map { item ->
|
.map { item ->
|
||||||
log.debug("Set to ${item.t2.getId()} lag = ${item.t1}")
|
|
||||||
item.t2.setLag(item.t1)
|
item.t2.setLag(item.t1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ class GrpcHead(
|
|||||||
.repeat()
|
.repeat()
|
||||||
.delayElements(Duration.ofSeconds(1))
|
.delayElements(Duration.ofSeconds(1))
|
||||||
)
|
)
|
||||||
.flatMap { it.subscribeHead(chainRef) }
|
.concatMap({ it.subscribeHead(chainRef) }, 0)
|
||||||
.doOnNext {
|
.doOnNext {
|
||||||
headsCounter.increment()
|
headsCounter.increment()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user