describe should return all chains with upstream, not only available
This commit is contained in:
@@ -36,7 +36,7 @@ open class CurrentMultistreamHolder(
|
||||
|
||||
override fun getAvailable(): List<Chain> {
|
||||
return chainMapping.values.asSequence()
|
||||
.filter { it.isAvailable() }
|
||||
.filter { it.haveUpstreams() }
|
||||
.map { it.chain }
|
||||
.toList()
|
||||
}
|
||||
|
||||
@@ -349,6 +349,9 @@ abstract class Multistream(
|
||||
}
|
||||
}
|
||||
|
||||
fun haveUpstreams(): Boolean =
|
||||
upstreams.isNotEmpty()
|
||||
|
||||
// --------------------------------------------------------------------------------------------------------
|
||||
|
||||
class UpstreamStatus(val upstream: Upstream, val status: UpstreamAvailability, val ts: Instant = Instant.now())
|
||||
|
||||
Reference in New Issue
Block a user