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)
|
||||
.flatMap(this::probeFollowers)
|
||||
.map { item ->
|
||||
log.debug("Set to ${item.t2.getId()} lag = ${item.t1}")
|
||||
item.t2.setLag(item.t1)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ class GrpcHead(
|
||||
.repeat()
|
||||
.delayElements(Duration.ofSeconds(1))
|
||||
)
|
||||
.flatMap { it.subscribeHead(chainRef) }
|
||||
.concatMap({ it.subscribeHead(chainRef) }, 0)
|
||||
.doOnNext {
|
||||
headsCounter.increment()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user