problem: unnecessary method for Head

This commit is contained in:
Igor Artamonov
2019-08-16 22:03:32 -04:00
parent 303d7e1164
commit 03ce6f74a5
14 changed files with 36 additions and 64 deletions

View File

@@ -105,7 +105,7 @@ class ChainUpstreams (
fun printStatus() {
var height: Long? = null
try {
height = head!!.getHead().block(Duration.ofSeconds(1))?.number
height = head!!.getFlux().next().block(Duration.ofSeconds(1))?.number
} catch (e: IllegalStateException) {
//timout
} catch (e: Exception) {