tryProxy does not makes sense for > than 1 upstream selectors

This commit is contained in:
Termina1
2022-12-21 20:42:55 +02:00
parent c9b5df9449
commit 92ac7fb9ad
3 changed files with 3 additions and 73 deletions

View File

@@ -98,7 +98,7 @@ open class EthereumMultistream(
upstreams.filter {
matcher.matches(it)
}.takeIf { ups ->
ups.isNotEmpty() && ups.all { it.isGrpc() }
ups.size == 1 && ups.all { it.isGrpc() }
}?.map {
it as GrpcUpstream
}?.map {

View File

@@ -98,7 +98,7 @@ open class EthereumPosMultiStream(
upstreams.filter {
matcher.matches(it)
}.takeIf { ups ->
ups.isNotEmpty() && ups.all { it.isGrpc() }
ups.size == 1 && ups.all { it.isGrpc() }
}?.map {
it as GrpcUpstream
}?.map {