Merge pull request #29 from p2p-org/fix_subscribe_fllter

fix filter
This commit is contained in:
Vyacheslav Shebanov
2022-10-18 18:43:56 +03:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -103,7 +103,7 @@ open class EthereumMultistream(
upstreams.filter {
matcher.matches(it)
}.takeIf { ups ->
ups.all { it.isGrpc() }
ups.isNotEmpty() && 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.all { it.isGrpc() }
ups.isNotEmpty() && ups.all { it.isGrpc() }
}?.map {
it as GrpcUpstream
}?.map {