MCPcopy
hub / github.com/grpc/grpc-go / erroringConfigSelector

Struct erroringConfigSelector

internal/xds/resolver/serviceconfig.go:138–140  ·  view source on GitHub ↗

erroringConfigSelector always returns an error, with the xDS node ID included in the error message. It is used to swap out the current config selector when the LDS or RDS resource is not found on the management server.

Source from the content-addressed store, hash-verified

136// in the error message. It is used to swap out the current config selector
137// when the LDS or RDS resource is not found on the management server.
138type erroringConfigSelector struct {
139 err error
140}
141
142func newErroringConfigSelector(err error, xdsNodeID string) *erroringConfigSelector {
143 return &erroringConfigSelector{err: annotateErrorWithNodeID(status.Error(codes.Unavailable, err.Error()), xdsNodeID)}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected