problem: unclear how grpc upstream labels works

This commit is contained in:
Igor Artamonov
2022-07-12 20:56:17 -04:00
parent ede552be59
commit 1598797767

View File

@@ -224,7 +224,11 @@ class UpstreamsConfigReader(
upNode: MappingNode,
upstream: UpstreamsConfig.Upstream<UpstreamsConfig.GrpcConnection>
) {
// Dshackle gRPC connection dispatches requests to different upstreams, which may
// be on different blockchains, and each may have different set of labels.
// So the labels and chains assigned to the gRPC connection make no sense.
if (hasAny(upNode, "labels")) {
// Actual labels from underlying upstreams are handled by GrpcUpstreamStatus
log.warn("Labels should be not applied to gRPC upstream")
}
if (hasAny(upNode, "chain")) {