change sample time for subscribe node status to 500ms

This commit is contained in:
Termina1
2023-06-29 19:00:42 +03:00
parent 6ab04ceafe
commit bf2dfa82b1

View File

@@ -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(