change sample time for subscribe node status to 500ms
This commit is contained in:
@@ -103,7 +103,7 @@ class SubscribeNodeStatus(
|
|||||||
): Flux<NodeStatusResponse> {
|
): Flux<NodeStatusResponse> {
|
||||||
val heads = upstream.getHead().getFlux()
|
val heads = upstream.getHead().getFlux()
|
||||||
.takeUntilOther(cancel.asFlux())
|
.takeUntilOther(cancel.asFlux())
|
||||||
.sample(Duration.ofSeconds(2))
|
.sample(Duration.ofMillis(500))
|
||||||
.map { block ->
|
.map { block ->
|
||||||
NodeStatusResponse.newBuilder()
|
NodeStatusResponse.newBuilder()
|
||||||
.setDescription(
|
.setDescription(
|
||||||
|
|||||||
Reference in New Issue
Block a user