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.
| 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. |
| 138 | type erroringConfigSelector struct { |
| 139 | err error |
| 140 | } |
| 141 | |
| 142 | func newErroringConfigSelector(err error, xdsNodeID string) *erroringConfigSelector { |
| 143 | return &erroringConfigSelector{err: annotateErrorWithNodeID(status.Error(codes.Unavailable, err.Error()), xdsNodeID)} |
nothing calls this directly
no outgoing calls
no test coverage detected