fixed labels grouping
This commit is contained in:
Submodule emerald-grpc updated: 6b012f3c89...812e9e6ddb
@@ -116,14 +116,18 @@ class SubscribeNodeStatus(
|
|||||||
private fun buildDescription(chain: Chain, up: Upstream): NodeDescription.Builder =
|
private fun buildDescription(chain: Chain, up: Upstream): NodeDescription.Builder =
|
||||||
NodeDescription.newBuilder()
|
NodeDescription.newBuilder()
|
||||||
.setChain(Common.ChainRef.forNumber(chain.id))
|
.setChain(Common.ChainRef.forNumber(chain.id))
|
||||||
.addAllLabels(
|
.addAllNodeLabels(
|
||||||
up.getLabels().flatMap { labels ->
|
up.getLabels().map { nodeLabels ->
|
||||||
labels.map {
|
BlockchainOuterClass.NodeLabels.newBuilder()
|
||||||
BlockchainOuterClass.Label.newBuilder()
|
.addAllLabels(
|
||||||
.setName(it.key)
|
nodeLabels.map {
|
||||||
.setValue(it.value)
|
BlockchainOuterClass.Label.newBuilder()
|
||||||
.build()
|
.setName(it.key)
|
||||||
}
|
.setValue(it.value)
|
||||||
|
.build()
|
||||||
|
}
|
||||||
|
)
|
||||||
|
.build()
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
.addAllSupportedMethods(up.getMethods().getSupportedMethods())
|
.addAllSupportedMethods(up.getMethods().getSupportedMethods())
|
||||||
|
|||||||
Reference in New Issue
Block a user